pub struct Recvfrom<'a, T> {
pub sockfd: c_int,
pub buf: &'a mut [u8],
pub flags: c_int,
pub src_addr: T,
}
Fields
sockfd: c_int
buf: &'a mut [u8]
flags: c_int
src_addr: T
Trait Implementations
sourceimpl<'a, T: Into<SockaddrOutput<'a>>> Alloc<'a> for Recvfrom<'a, T>
impl<'a, T: Into<SockaddrOutput<'a>>> Alloc<'a> for Recvfrom<'a, T>
type Staged = (Output<'a, [u8], &'a mut [u8]>, StagedSockaddrOutput<'a>)
type Staged = (Output<'a, [u8], &'a mut [u8]>, StagedSockaddrOutput<'a>)
Opaque staged value, which returns Self::Committed
when committed via Commit::commit
. Read more
type Committed = (Output<'a, [u8], &'a mut [u8]>, CommittedSockaddrOutput<'a>)
type Committed = (Output<'a, [u8], &'a mut [u8]>, CommittedSockaddrOutput<'a>)
Opaque committed value
returned by guest::alloc::Commit::commit
called upon Self::Staged
, which returns Self::Collected
when
collected via guest::alloc::Collect::collect
. Read more
type Collected = Option<Result<usize, i32>>
type Collected = Option<Result<usize, i32>>
Value syscall collects as, which corresponds to its return value. Read more
sourcefn stage(self, alloc: &mut impl Allocator) -> Result<(Self::Argv, Self::Staged)>
fn stage(self, alloc: &mut impl Allocator) -> Result<(Self::Argv, Self::Staged)>
Allocate dynamic data, if necessary and return resulting argument vector registers and opaque staged value on success. Read more
sourcefn collect(
(buf, src_addr): Self::Committed,
ret: Result<Self::Ret>,
col: &impl Collector
) -> Self::Collected
fn collect(
(buf, src_addr): Self::Committed,
ret: Result<Self::Ret>,
col: &impl Collector
) -> Self::Collected
Collect the return registers, opaque committed value
and return a Self::Collected
. Read more
Auto Trait Implementations
impl<'a, T> RefUnwindSafe for Recvfrom<'a, T> where
T: RefUnwindSafe,
impl<'a, T> Send for Recvfrom<'a, T> where
T: Send,
impl<'a, T> Sync for Recvfrom<'a, T> where
T: Sync,
impl<'a, T> Unpin for Recvfrom<'a, T> where
T: Unpin,
impl<'a, T> !UnwindSafe for Recvfrom<'a, T>
Blanket Implementations
sourceimpl<T> BorrowMut<T> for T where
T: ?Sized,
impl<T> BorrowMut<T> for T where
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
sourceimpl<'a, K, T> Call<'a, Alloc<K>> for T where
K: Kind,
T: Alloc<'a, K>,
impl<'a, K, T> Call<'a, Alloc<K>> for T where
K: Kind,
T: Alloc<'a, K>,
type Staged = StagedCall<'a, K, T>
type Staged = StagedCall<'a, K, T>
Opaque staged value, which returns Self::Committed
when committed via Commit::commit
. Read more
type Committed = CommittedCall<'a, K, T>
type Committed = CommittedCall<'a, K, T>
Opaque committed value returned by Commit::commit
called upon Self::Staged
,
which is, in turn, passed to Collect::collect
to yield a Self::Collected
. Read more