pub struct StaticHandlerSpec {
pub device_filter: Option<DeviceFilter>,
}Expand description
Static specification returned by UsbHostHandler::static_spec.
Fields§
§device_filter: Option<DeviceFilter>Optional pre-filter — avoids calling try_register for clearly mismatched devices.
Implementations§
Source§impl StaticHandlerSpec
impl StaticHandlerSpec
pub fn new(device_filter: Option<DeviceFilter>) -> Self
Auto Trait Implementations§
impl Freeze for StaticHandlerSpec
impl RefUnwindSafe for StaticHandlerSpec
impl Send for StaticHandlerSpec
impl Sync for StaticHandlerSpec
impl Unpin for StaticHandlerSpec
impl UnwindSafe for StaticHandlerSpec
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