pub struct UsbSource;Expand description
Opens real USB devices, matched by serial number.
Trait Implementations§
Source§impl DeviceSource for UsbSource
impl DeviceSource for UsbSource
Source§fn opener(&self, ident: &DeviceIdent) -> Arc<dyn DeviceOpener> ⓘ
fn opener(&self, ident: &DeviceIdent) -> Arc<dyn DeviceOpener> ⓘ
The opener for a device the watch reported. It’s used to open the device
now and, if the mount ever needs it, to reopen the same one later, so it
must resolve to that device and not to “whatever is plugged in”.
Auto Trait Implementations§
impl Freeze for UsbSource
impl RefUnwindSafe for UsbSource
impl Send for UsbSource
impl Sync for UsbSource
impl Unpin for UsbSource
impl UnsafeUnpin for UsbSource
impl UnwindSafe for UsbSource
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