pub struct WriteFixed { /* private fields */ }
Expand description
Write to a file from a fixed buffer that have been previously registered with
Submitter::register_buffers
.
The return values match those documented in the pwritev2(2)
man pages.
Implementations§
Source§impl WriteFixed
impl WriteFixed
Sourcepub const CODE: u8 = 5u8
pub const CODE: u8 = 5u8
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 fn new(fd: impl UseFixed, buf: *const u8, len: u32, buf_index: u16) -> 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 write operations, contains a bitwise OR of per-I/O flags, as described in
the pwritev2(2)
man page.
pub fn build(self) -> Entry
Trait Implementations§
Auto Trait Implementations§
impl Freeze for WriteFixed
impl RefUnwindSafe for WriteFixed
impl !Send for WriteFixed
impl !Sync for WriteFixed
impl Unpin for WriteFixed
impl UnwindSafe for WriteFixed
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