struct ReceiveIntoArgs<'a> {
sock: &'a mut sock_udp_t,
buffer: &'a mut [u8],
}
Available on
riot_module_sock_udp
and riot_module_sock_aux_local
and crate feature with_embedded_nal_async
only.Fields§
§sock: &'a mut sock_udp_t
§buffer: &'a mut [u8]
Implementations§
Source§impl ReceiveIntoArgs<'_>
impl ReceiveIntoArgs<'_>
unsafe extern "C" fn callback( _sock: *mut sock_udp_t, flags: sock_async_flags_t, arg: *mut c_void, )
Trait Implementations§
Source§impl Drop for ReceiveIntoArgs<'_>
impl Drop for ReceiveIntoArgs<'_>
Source§impl RiotStyleFuture for ReceiveIntoArgs<'_>
impl RiotStyleFuture for ReceiveIntoArgs<'_>
type Output = Result<(usize, SocketAddr, SocketAddr), NumericError>
fn poll(&mut self, arg: *mut c_void) -> Poll<Self::Output>
Auto Trait Implementations§
impl<'a> Freeze for ReceiveIntoArgs<'a>
impl<'a> RefUnwindSafe for ReceiveIntoArgs<'a>
impl<'a> !Send for ReceiveIntoArgs<'a>
impl<'a> !Sync for ReceiveIntoArgs<'a>
impl<'a> Unpin for ReceiveIntoArgs<'a>
impl<'a> !UnwindSafe for ReceiveIntoArgs<'a>
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> IntoSwitch for T
impl<T> IntoSwitch for T
Source§fn into_switch<ActiveLevel>(self) -> Switch<T, ActiveLevel>
fn into_switch<ActiveLevel>(self) -> Switch<T, ActiveLevel>
Source§fn into_active_high_switch(self) -> Switch<Self, ActiveHigh>where
Self: Sized,
fn into_active_high_switch(self) -> Switch<Self, ActiveHigh>where
Self: Sized,
Layout§
Note: Most layout information is completely unstable and may even differ between compilations. The only exception is types with certain repr(...)
attributes. Please see the Rust Reference's “Type Layout” chapter for details on type layout guarantees.
Size: 12 bytes