pub struct ReadFixed { /* private fields */ }
Expand description
Read from pre-mapped buffers that have been previously registered with
Submitter::register_buffers
.
The return values match those documented in the preadv2(2)
man pages.
Implementations
sourceimpl ReadFixed
impl ReadFixed
sourcepub fn new(fd: impl UseFixed, buf: *mut u8, len: u32, buf_index: u16) -> Self
pub fn new(fd: impl UseFixed, buf: *mut u8, len: u32, buf_index: u16) -> Self
The buf_index
is an index into an array of fixed buffers,
and is only valid if fixed buffers were registered.
sourcepub const CODE: u8 = 4u8
pub const CODE: u8 = 4u8
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 offset64(self, offset64: off64_t) -> Self
pub const fn ioprio(self, ioprio: u16) -> 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 fn build(self) -> Entry
Trait Implementations
Auto Trait Implementations
impl RefUnwindSafe for ReadFixed
impl !Send for ReadFixed
impl !Sync for ReadFixed
impl Unpin for ReadFixed
impl UnwindSafe for ReadFixed
Blanket Implementations
sourceimpl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
const: unstable · sourcefn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more