pub struct MtpFsConfig {
pub read_only: bool,
pub spool_dir: PathBuf,
pub reconnect: ReconnectPolicy,
pub unplug: UnplugSwitch,
}Expand description
Everything the mount needs beyond the device itself.
Fields§
§read_only: bool§spool_dir: PathBufDisk-backed directory for write buffers and read caches (see crate::spool).
Must exist and be writable; resolve it with crate::spool::spool_dir_from_env
and crate::spool::prepare_spool_dir.
reconnect: ReconnectPolicyHow long to wait for a device that went away.
unplug: UnplugSwitchThe pretend cable, shared with the DeviceOpener (tests only).
Auto Trait Implementations§
impl Freeze for MtpFsConfig
impl RefUnwindSafe for MtpFsConfig
impl Send for MtpFsConfig
impl Sync for MtpFsConfig
impl Unpin for MtpFsConfig
impl UnsafeUnpin for MtpFsConfig
impl UnwindSafe for MtpFsConfig
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