pub struct DeviceFilter {
pub base_class: Option<NonZeroU8>,
pub sub_class: Option<u8>,
pub protocol: Option<u8>,
}Expand description
A non-exhaustive filter applied before calling UsbHostHandler::try_register.
Fields§
§base_class: Option<NonZeroU8>Device base-class; None or 0 means class is defined at the interface level.
sub_class: Option<u8>§protocol: Option<u8>Auto Trait Implementations§
impl Freeze for DeviceFilter
impl RefUnwindSafe for DeviceFilter
impl Send for DeviceFilter
impl Sync for DeviceFilter
impl Unpin for DeviceFilter
impl UnwindSafe for DeviceFilter
Blanket Implementations§
Source§impl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
Source§fn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more