pub struct UsbOpener { /* private fields */ }Expand description
Opens a USB MTP device by serial number.
The serial is read off the device that was opened at startup even when the
user didn’t pass -d, so a reconnect can’t wander onto a different phone
that happens to be plugged in. Devices that report no serial fall back to
“first available”, which is the best that’s on offer.
Implementations§
Trait Implementations§
Source§impl DeviceOpener for UsbOpener
impl DeviceOpener for UsbOpener
Auto Trait Implementations§
impl Freeze for UsbOpener
impl RefUnwindSafe for UsbOpener
impl Send for UsbOpener
impl Sync for UsbOpener
impl Unpin for UsbOpener
impl UnsafeUnpin for UsbOpener
impl UnwindSafe for UsbOpener
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