pub trait AsyncRecv {
// Required method
fn poll_recv(
&mut self,
cx: &mut Context<'_>,
bufs: &mut [IoSliceMut<'_>],
) -> Poll<Result<usize>>;
}Expand description
Trait implemented by types that can receive datagrams.
This is different from [futures::AsyncRead], which is used for byte
streams.