pub struct UnconnectedUdpSocket { /* private fields */ }
Available on
riot_module_sock_udp
and riot_module_sock_aux_local
and crate feature with_embedded_nal_async
only.Trait Implementations§
source§impl Debug for UnconnectedUdpSocket
impl Debug for UnconnectedUdpSocket
source§impl UnconnectedUdp for UnconnectedUdpSocket
impl UnconnectedUdp for UnconnectedUdpSocket
§type Error = NumericError
type Error = NumericError
Error type returned by send and receive operations.
source§async fn send(
&mut self,
local: SocketAddr,
remote: SocketAddr,
data: &[u8]
) -> Result<(), Self::Error>
async fn send( &mut self, local: SocketAddr, remote: SocketAddr, data: &[u8] ) -> Result<(), Self::Error>
Send the provided data to a peer Read more
source§async fn receive_into(
&mut self,
buffer: &mut [u8]
) -> Result<(usize, SocketAddr, SocketAddr), Self::Error>
async fn receive_into( &mut self, buffer: &mut [u8] ) -> Result<(usize, SocketAddr, SocketAddr), Self::Error>
Receive a datagram into the provided buffer. Read more
source§impl UnconnectedUdp for UnconnectedUdpSocket
impl UnconnectedUdp for UnconnectedUdpSocket
§type Error = NumericError
type Error = NumericError
Error type returned by send and receive operations.
source§async fn send(
&mut self,
local: SocketAddr,
remote: SocketAddr,
data: &[u8]
) -> Result<(), Self::Error>
async fn send( &mut self, local: SocketAddr, remote: SocketAddr, data: &[u8] ) -> Result<(), Self::Error>
Send the provided data to a peer Read more
source§async fn receive_into(
&mut self,
buffer: &mut [u8]
) -> Result<(usize, SocketAddr, SocketAddr), Self::Error>
async fn receive_into( &mut self, buffer: &mut [u8] ) -> Result<(usize, SocketAddr, SocketAddr), Self::Error>
Receive a datagram into the provided buffer. Read more
Auto Trait Implementations§
impl RefUnwindSafe for UnconnectedUdpSocket
impl !Send for UnconnectedUdpSocket
impl !Sync for UnconnectedUdpSocket
impl Unpin for UnconnectedUdpSocket
impl !UnwindSafe for UnconnectedUdpSocket
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