pub struct Writev { /* private fields */ }Expand description
Vectored write, equivalent to pwritev2(2).
Implementations§
source§impl Writev
impl Writev
pub fn new(fd: impl UseFixed, iovec: *const iovec, len: u32) -> Self
sourcepub const CODE: u8 = 2u8
pub const CODE: u8 = 2u8
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 write 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 Writev
impl !Send for Writev
impl !Sync for Writev
impl Unpin for Writev
impl UnwindSafe for Writev
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