pub struct Msd { /* private fields */ }Expand description
USB Mass Storage Device (MSD) function.
Implementations§
Source§impl Msd
impl Msd
Sourcepub fn new(file: impl AsRef<Path>) -> Result<(Msd, Handle)>
pub fn new(file: impl AsRef<Path>) -> Result<(Msd, Handle)>
Creates a new USB Mass Storage Device (MSD) with the specified backing file.
Sourcepub fn builder() -> MsdBuilder
pub fn builder() -> MsdBuilder
Creates a new USB Mass Storage Device (MSD) builder.
Sourcepub fn force_eject(&self, lun: usize) -> Result<()>
pub fn force_eject(&self, lun: usize) -> Result<()>
Forcibly detach the backing file from the LUN, regardless of whether the host has allowed it.
Trait Implementations§
Auto Trait Implementations§
impl Freeze for Msd
impl RefUnwindSafe for Msd
impl Send for Msd
impl Sync for Msd
impl Unpin for Msd
impl UnsafeUnpin for Msd
impl UnwindSafe for Msd
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