pub trait DeviceOpener: Send + Sync {
// Required methods
fn open(&self, rt: &Handle) -> Result<MtpDevice, Error>;
fn describe(&self) -> String;
}Expand description
Source of MTP devices for a mount.
Implementations block; they’re called from a FUSE callback thread with a
tokio handle to drive the async mtp-rs calls on.
Required Methods§
Dyn Compatibility§
This trait is dyn compatible.
In older versions of Rust, dyn compatibility was called "object safety".