pub struct SendZc { /* private fields */ }Expand description
Send a zerocopy message on a socket, equivalent to send(2).
Implementations
sourceimpl SendZc
impl SendZc
pub fn new(fd: impl UseFixed, buf: *const u8, len: u32) -> Self
sourcepub const CODE: u8 = 47u8
pub const CODE: u8 = 47u8
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 flags(self, flags: i32) -> Self
pub const fn zc_flags(self, zc_flags: u16) -> Self
pub fn build(self) -> Entry
Auto Trait Implementations
impl RefUnwindSafe for SendZc
impl !Send for SendZc
impl !Sync for SendZc
impl Unpin for SendZc
impl UnwindSafe for SendZc
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