pub struct StackAccessor<'a, const UDPCOUNT: usize> {
stack: &'a mut Stack<UDPCOUNT>,
}
Available on
riot_module_sock_udp
and crate feature with_embedded_nal
only.Fields§
§stack: &'a mut Stack<UDPCOUNT>
Implementations§
Source§impl<'a, const UDPCOUNT: usize> StackAccessor<'a, UDPCOUNT>
impl<'a, const UDPCOUNT: usize> StackAccessor<'a, UDPCOUNT>
Trait Implementations§
Source§impl<'a, const UDPCOUNT: usize> Debug for StackAccessor<'a, UDPCOUNT>
impl<'a, const UDPCOUNT: usize> Debug for StackAccessor<'a, UDPCOUNT>
Source§impl<'a, const UDPCOUNT: usize> UdpClientStack for StackAccessor<'a, UDPCOUNT>
impl<'a, const UDPCOUNT: usize> UdpClientStack for StackAccessor<'a, UDPCOUNT>
Source§type Error = NumericError
type Error = NumericError
The type returned when we have an error
Source§fn connect(
&mut self,
handle: &mut Self::UdpSocket,
remote: SocketAddr,
) -> Result<(), Self::Error>
fn connect( &mut self, handle: &mut Self::UdpSocket, remote: SocketAddr, ) -> Result<(), Self::Error>
Connect a UDP socket with a peer using a dynamically selected port. Read more
Source§fn send(
&mut self,
socket: &mut Self::UdpSocket,
buffer: &[u8],
) -> Result<(), Error<Self::Error>>
fn send( &mut self, socket: &mut Self::UdpSocket, buffer: &[u8], ) -> Result<(), Error<Self::Error>>
Send a datagram to the remote host. Read more
Source§impl<'a, const UDPCOUNT: usize> UdpFullStack for StackAccessor<'a, UDPCOUNT>
impl<'a, const UDPCOUNT: usize> UdpFullStack for StackAccessor<'a, UDPCOUNT>
Auto Trait Implementations§
impl<'a, const UDPCOUNT: usize> Freeze for StackAccessor<'a, UDPCOUNT>
impl<'a, const UDPCOUNT: usize> RefUnwindSafe for StackAccessor<'a, UDPCOUNT>
impl<'a, const UDPCOUNT: usize> !Send for StackAccessor<'a, UDPCOUNT>
impl<'a, const UDPCOUNT: usize> !Sync for StackAccessor<'a, UDPCOUNT>
impl<'a, const UDPCOUNT: usize> Unpin for StackAccessor<'a, UDPCOUNT>
impl<'a, const UDPCOUNT: usize> !UnwindSafe for StackAccessor<'a, UDPCOUNT>
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: 4 bytes