pub struct Readv { /* private fields */ }Expand description
Vectored read, equivalent to preadv2(2).
Implementations§
source§impl Readv
impl Readv
pub fn new(fd: impl UseFixed, iovec: *const iovec, len: u32) -> Self
sourcepub const CODE: u8 = 1u8
pub const CODE: u8 = 1u8
The opcode of the operation. This can be passed to
Probe::is_supported to check if this operation is
supported with the current kernel.
pub const fn ioprio(self, ioprio: u16) -> Self
pub const fn offset(self, offset: u64) -> Self
sourcepub const fn rw_flags(self, rw_flags: RwFlags) -> Self
pub const fn rw_flags(self, rw_flags: RwFlags) -> Self
specified for read operations, contains a bitwise OR of per-I/O flags,
as described in the preadv2(2) man page.
pub const fn buf_group(self, buf_group: u16) -> Self
pub fn build(self) -> Entry
Trait Implementations§
Auto Trait Implementations§
impl RefUnwindSafe for Readv
impl !Send for Readv
impl !Sync for Readv
impl Unpin for Readv
impl UnwindSafe for Readv
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