pub struct SendMsg { /* private fields */ }
Expand description
Send a 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 SendMsg
impl SendMsg
pub fn new(fd: impl UseFixed, msg: *const msghdr) -> Self
sourcepub const CODE: u8 = 9u8
pub const CODE: u8 = 9u8
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 flags(self, flags: u32) -> Self
pub fn build(self) -> Entry
Trait Implementations§
Auto Trait Implementations§
impl Freeze for SendMsg
impl RefUnwindSafe for SendMsg
impl !Send for SendMsg
impl !Sync for SendMsg
impl Unpin for SendMsg
impl UnwindSafe for SendMsg
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