pub struct UdpStack { /* private fields */ }
Available on
riot_module_sock_udp
and riot_module_sock_aux_local
and crate feature with_embedded_nal_async
only.Implementations§
source§impl UdpStack
impl UdpStack
pub fn new( factory: fn() -> Option<&'static mut MaybeUninit<sock_udp_t>> ) -> Self
Trait Implementations§
source§impl UdpStack for UdpStack
impl UdpStack for UdpStack
§type Error = NumericError
type Error = NumericError
Error type returned on socket creation failure.
§type Connected = ConnectedUdpSocket
type Connected = ConnectedUdpSocket
Eventual socket return type of the [
.connect()
] method§type UniquelyBound = UnconnectedUdpSocket
type UniquelyBound = UnconnectedUdpSocket
Eventual socket return type of the [
.bind_single()
] method§type MultiplyBound = UnconnectedUdpSocket
type MultiplyBound = UnconnectedUdpSocket
Eventual return type of the [
.bind_multiple()
] methodsource§async fn connect_from(
&self,
local: SocketAddr,
remote: SocketAddr
) -> Result<(SocketAddr, Self::Connected), Self::Error>
async fn connect_from( &self, local: SocketAddr, remote: SocketAddr ) -> Result<(SocketAddr, Self::Connected), Self::Error>
Create a socket that has a fixed remote address. Read more
source§async fn bind_single(
&self,
local: SocketAddr
) -> Result<(SocketAddr, Self::UniquelyBound), Self::Error>
async fn bind_single( &self, local: SocketAddr ) -> Result<(SocketAddr, Self::UniquelyBound), Self::Error>
Create a socket that has a fixed local address. Read more
source§async fn bind_multiple(
&self,
local: SocketAddr
) -> Result<Self::MultiplyBound, Self::Error>
async fn bind_multiple( &self, local: SocketAddr ) -> Result<Self::MultiplyBound, Self::Error>
Create a socket that has no single fixed local address. Read more
source§async fn connect(
&self,
remote: SocketAddr
) -> Result<(SocketAddr, Self::Connected), Self::Error>
async fn connect( &self, remote: SocketAddr ) -> Result<(SocketAddr, Self::Connected), Self::Error>
Create a socket that has a fixed remote address. Read more
source§impl UdpStack for UdpStack
impl UdpStack for UdpStack
§type Error = NumericError
type Error = NumericError
Error type returned on socket creation failure.
§type Connected = ConnectedUdpSocket
type Connected = ConnectedUdpSocket
Eventual socket return type of the [
.connect()
] method§type UniquelyBound = UnconnectedUdpSocket
type UniquelyBound = UnconnectedUdpSocket
Eventual socket return type of the [
.bind_single()
] method§type MultiplyBound = UnconnectedUdpSocket
type MultiplyBound = UnconnectedUdpSocket
Eventual return type of the [
.bind_multiple()
] methodsource§async fn connect_from(
&self,
local: SocketAddr,
remote: SocketAddr
) -> Result<(SocketAddr, Self::Connected), Self::Error>
async fn connect_from( &self, local: SocketAddr, remote: SocketAddr ) -> Result<(SocketAddr, Self::Connected), Self::Error>
Create a socket that has a fixed remote address. Read more
source§async fn bind_single(
&self,
local: SocketAddr
) -> Result<(SocketAddr, Self::UniquelyBound), Self::Error>
async fn bind_single( &self, local: SocketAddr ) -> Result<(SocketAddr, Self::UniquelyBound), Self::Error>
Create a socket that has a fixed local address. Read more
source§async fn bind_multiple(
&self,
local: SocketAddr
) -> Result<Self::MultiplyBound, Self::Error>
async fn bind_multiple( &self, local: SocketAddr ) -> Result<Self::MultiplyBound, Self::Error>
Create a socket that has no single fixed local address. Read more
source§async fn connect(
&self,
remote: SocketAddr
) -> Result<(SocketAddr, Self::Connected), Self::Error>
async fn connect( &self, remote: SocketAddr ) -> Result<(SocketAddr, Self::Connected), Self::Error>
Create a socket that has a fixed remote address. Read more
Auto Trait Implementations§
impl RefUnwindSafe for UdpStack
impl Send for UdpStack
impl Sync for UdpStack
impl Unpin for UdpStack
impl UnwindSafe for UdpStack
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