#[repr(C)]pub struct Iovec {
pub iov_base: *const u8,
pub iov_len: usize,
}Expand description
POSIX struct iovec for IORING_OP_WRITEV. Matches the kernel
layout (pointer + length). L1 (2026-06-21): the reactor’s reply
path submits an &[Iovec] so [bulk-header, value-bytes,
trailing-CRLF] fuse into ONE syscall — skipping the per-GET
memcpy of the value into the per-conn output Vec.
Lifetime: the kernel reads the iovec array AND each iovec’s
base slice asynchronously. The caller must keep both alive until
the matching CQE fires (uring_arm_conns parks them in the conn’s
pending-writes state and drops on completion).
Fields§
§iov_base: *const u8Pointer to bytes.
iov_len: usizeNumber of bytes at iov_base.
Trait Implementations§
Auto Trait Implementations§
impl !Send for Iovec
impl !Sync for Iovec
impl Freeze for Iovec
impl RefUnwindSafe for Iovec
impl Unpin for Iovec
impl UnsafeUnpin for Iovec
impl UnwindSafe for Iovec
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