Expand description
Generic, datagram-based CoAP backend, with associated socket abstractions.
The actual backend is DatagramLocalEndpoint
. It uses an asynchronous datagram
socket that implements the trait AsyncDatagramSocket
and all of its required dependency
traits (DatagramSocketTypes
, AsyncSendTo
, AsyncRecvFrom
, MulticastSocket
,
Send
, and Sync
).
Structs§
- Allow
StdUdp Socket - A wrapper around
std::net::UdpSocket
that implementsAsyncDatagramSocket
. - Datagram
Local Endpoint - Generic, datagram-based CoAP local endpoint implementation.
- Datagram
Remote Endpoint RemoteEndpoint
implementation forDatagramLocalEndpoint
.- Datagram
Respondable Inbound Context - Concrete instance of
LocalEndpoint::RespondableInboundContext
forDatagramLocalEndpoint
. - Loopback
Socket - An instance of
AsyncDatagramSocket
that implements a simple loopback interface, where all packets that are sent are looped back to the input. - Next
Recv From Future - Future returned from
AsyncRecvFrom::next_recv_from
. - Next
Send ToFuture - Future returned from
AsyncSendTo::next_send_to
. - Null
Socket - An instance of
AsyncDatagramSocket
that implements a simple null interface, where all packets that are sent are discarded. - Null
Socket Addr - Simplified “SocketAddr” for
NullSocket
. Does nothing.
Enums§
- Loopback
Socket Addr - Simplified “SocketAddr” for
LoopbackSocket
. Allows for two different types of addresses: Unicast addresses and Multicast addresses.
Traits§
- Async
Datagram Socket - A trait for asynchronous datagram sockets.
- Async
Recv From - Trait for providing
recv_from
functionality for asynchronous, datagram-based sockets. - Async
Send To - Trait for providing
sent_to
functionality for asynchronous, datagram-based sockets. - Datagram
Socket Types - Trait implemented by a “socket” that describes the underlying
SocketAddr
and socket error types as associated types. - Multicast
Socket - Trait that provides methods for joining/leaving multicast groups.
Type Aliases§
- Datagram
Inbound Context - Concrete instance of
LocalEndpoint::InboundContext
forDatagramLocalEndpoint
.