Struct shadow_rs::host::descriptor::socket::RecvmsgReturn
source · pub struct RecvmsgReturn {
pub return_val: ssize_t,
pub addr: Option<SockaddrStorage>,
pub msg_flags: c_int,
pub control_len: size_t,
}
Expand description
Return values for Socket::recvmsg()
.
Fields§
§return_val: ssize_t
The return value for the syscall. Typically is the number of message bytes read, but is modifiable by the syscall flag.
addr: Option<SockaddrStorage>
The socket address of the received message.
msg_flags: c_int
Message flags.
control_len: size_t
The number of control data bytes read.
Auto Trait Implementations§
impl Freeze for RecvmsgReturn
impl RefUnwindSafe for RecvmsgReturn
impl Send for RecvmsgReturn
impl Sync for RecvmsgReturn
impl Unpin for RecvmsgReturn
impl UnwindSafe for RecvmsgReturn
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
source§impl<T> IntoEither for T
impl<T> IntoEither for T
source§fn into_either(self, into_left: bool) -> Either<Self, Self>
fn into_either(self, into_left: bool) -> Either<Self, Self>
Converts
self
into a Left
variant of Either<Self, Self>
if into_left
is true
.
Converts self
into a Right
variant of Either<Self, Self>
otherwise. Read moresource§fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
Converts
self
into a Left
variant of Either<Self, Self>
if into_left(&self)
returns true
.
Converts self
into a Right
variant of Either<Self, Self>
otherwise. Read more