#[repr(C)]pub enum Operation {
Read {
device_block_offset: u64,
block_count: u32,
_unused: u32,
vmo_offset: u64,
options: ReadOptions,
},
Write {
device_block_offset: u64,
block_count: u32,
_unused: u32,
vmo_offset: u64,
options: WriteOptions,
},
Flush,
Trim {
device_block_offset: u64,
block_count: u32,
},
CloseVmo,
StartDecompressedRead {
required_buffer_size: usize,
device_block_offset: u64,
block_count: u32,
options: ReadOptions,
},
ContinueDecompressedRead {
offset: u64,
device_block_offset: u64,
block_count: u32,
options: ReadOptions,
},
}Variants§
Read
Write
Flush
Trim
CloseVmo
This will never be seen by the C interface.
StartDecompressedRead
ContinueDecompressedRead
Implementations§
Source§impl Operation
impl Operation
Sourcepub fn has_write_flag(&self, value: WriteFlags) -> bool
pub fn has_write_flag(&self, value: WriteFlags) -> bool
Returns true if the specified write flags are set.
Sourcepub fn take_write_flag(&mut self, value: WriteFlags) -> bool
pub fn take_write_flag(&mut self, value: WriteFlags) -> bool
Removes value from the request’s write flags and returns true if the flag was set.
Trait Implementations§
impl Eq for Operation
impl StructuralPartialEq for Operation
Auto Trait Implementations§
impl Freeze for Operation
impl RefUnwindSafe for Operation
impl Send for Operation
impl Sync for Operation
impl Unpin for Operation
impl UnwindSafe for Operation
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