[][src]Module async_coap::datagram

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

AllowStdUdpSocket

A wrapper around std::net::UdpSocket that implements AsyncDatagramSocket.

DatagramLocalEndpoint

Generic, datagram-based CoAP local endpoint implementation.

DatagramRemoteEndpoint

RemoteEndpoint implementation for DatagramLocalEndpoint.

DatagramRespondableInboundContext

Concrete instance of LocalEndpoint::RespondableInboundContext for DatagramLocalEndpoint.

LoopbackSocket

An instance of AsyncDatagramSocket that implements a simple loopback interface, where all packets that are sent are looped back to the input.

NextRecvFromFuture

Future returned from AsyncRecvFrom::next_recv_from.

NextSendToFuture

Future returned from AsyncSendTo::next_send_to.

NullSocket

An instance of AsyncDatagramSocket that implements a simple null interface, where all packets that are sent are discarded.

NullSocketAddr

Simplified "SocketAddr" for NullSocket. Does nothing.

Enums

LoopbackSocketAddr

Simplified "SocketAddr" for LoopbackSocket. Allows for two different types of addresses: Unicast addresses and Multicast addresses.

Traits

AsyncDatagramSocket

A trait for asynchronous datagram sockets.

AsyncRecvFrom

Trait for providing recv_from functionality for asynchronous, datagram-based sockets.

AsyncSendTo

Trait for providing sent_to functionality for asynchronous, datagram-based sockets.

DatagramSocketTypes

Trait implemented by a "socket" that describes the underlying SocketAddr and socket error types as associated types.

MulticastSocket

Trait that provides methods for joining/leaving multicast groups.

Type Definitions

DatagramInboundContext

Concrete instance of LocalEndpoint::InboundContext for DatagramLocalEndpoint.