pub enum IoctlCmd<'a> {
CtrlSync,
GetSectorCount(&'a mut u64),
GetSectorSize(&'a mut usize),
GetBlockSize(&'a mut usize),
CtrlTrim(&'a (u64, u64)),
}
Expand description
Ioctl commands.
Variants§
CtrlSync
Complete pending write process.
GetSectorCount(&'a mut u64)
Get media size.
GetSectorSize(&'a mut usize)
Get sector size.
GetBlockSize(&'a mut usize)
Get erase block size.
CtrlTrim(&'a (u64, u64))
Inform device that the data on the block of sectors is no longer used.
Auto Trait Implementations§
impl<'a> Freeze for IoctlCmd<'a>
impl<'a> RefUnwindSafe for IoctlCmd<'a>
impl<'a> Send for IoctlCmd<'a>
impl<'a> Sync for IoctlCmd<'a>
impl<'a> Unpin for IoctlCmd<'a>
impl<'a> !UnwindSafe for IoctlCmd<'a>
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