Module async_dgram

Source
Expand description

Traits for async send and receive of datagrams.

Datagrams are self-contained messages that are not split or combined when sent or received and instead always maintain their original message boundaries.

This is different from bytes sent or received over a byte stream (as in [futures::AsyncRead]), where one send can be split into multiple receives, or multiple sends can be combined into one receive.

Structs§

Recv
A future for AsyncRecvExt::recv.
RecvExact
A future for AsyncRecvExt::recv_exact.
RecvVectored
A future for AsyncRecvExt::recv_vectored.
Send
A future for AsyncSendExt::send.
SendVectored
A future for AsyncSendExt::send_vectored.

Traits§

AsyncRecv
Trait implemented by types that can receive datagrams.
AsyncRecvExt
Extension trait for AsyncRecv.
AsyncSend
A trait implemented by types that can send datagrams.
AsyncSendExt
Extension trait for AsyncSend.