pub enum Backend {
Auto,
Usb,
Wpd,
}Expand description
Selects which backend MtpDeviceBuilder opens.
Auto (the default) picks per platform: on Windows it prefers the WPD backend (phones are bound
to the WPD driver, not WinUSB), falling back to PTP-over-USB only if no WPD device is present;
on other platforms it uses USB. Usb forces PTP-over-USB (e.g. a Zadig/WinUSB-bound camera on
Windows); Wpd forces Windows WPD-over-COM (and errors as unsupported off Windows).
Variants§
Auto
Platform default: Windows → WPD then USB; elsewhere → USB.
Usb
Force PTP-over-USB.
Wpd
Force Windows WPD-over-COM.
Trait Implementations§
impl Copy for Backend
impl Eq for Backend
impl StructuralPartialEq for Backend
Auto Trait Implementations§
impl Freeze for Backend
impl RefUnwindSafe for Backend
impl Send for Backend
impl Sync for Backend
impl Unpin for Backend
impl UnsafeUnpin for Backend
impl UnwindSafe for Backend
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