pub struct SendMsgZc { /* private fields */ }
Expand description
Send a zerocopy message on a socket, equivalent to send(2)
.
fd must be set to the socket file descriptor, addr must contains a pointer to the msghdr structure, and flags holds the flags associated with the system call.
Implementations§
Source§impl SendMsgZc
impl SendMsgZc
Sourcepub const CODE: u8 = 48u8
pub const CODE: u8 = 48u8
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, msg: *const msghdr) -> Self
pub const fn ioprio(self, ioprio: u16) -> Self
pub const fn flags(self, flags: u32) -> Self
pub fn build(self) -> Entry
Trait Implementations§
Auto Trait Implementations§
impl Freeze for SendMsgZc
impl RefUnwindSafe for SendMsgZc
impl !Send for SendMsgZc
impl !Sync for SendMsgZc
impl Unpin for SendMsgZc
impl UnwindSafe for SendMsgZc
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