pub enum RawCommand<'a> {
Pread {
offset: u64,
buffer: &'a mut LockedBuf,
flags: ReadFlags,
len: u64,
},
Pwrite {
offset: u64,
buffer: &'a LockedBuf,
flags: WriteFlags,
len: u64,
},
Fdsync,
Fsync,
}
Expand description
Raw AIO command
Variants§
Pread
Read
Fields
Pwrite
Write
Fields
§
flags: WriteFlags
Write flags
Fdsync
Sync data only
Fsync
Sync data and metadata
Trait Implementations§
Auto Trait Implementations§
impl<'a> Freeze for RawCommand<'a>
impl<'a> !RefUnwindSafe for RawCommand<'a>
impl<'a> Send for RawCommand<'a>
impl<'a> Sync for RawCommand<'a>
impl<'a> Unpin for RawCommand<'a>
impl<'a> !UnwindSafe for RawCommand<'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