pub trait AsyncDgramRecv {
// Required method
fn poll_recv(
&self,
cx: &mut Context<'_>,
buf: &mut ReadBuf<'_>,
) -> Poll<Result<(), Error>>;
}
Expand description
Receive a datagram packets asynchronously.
pub trait AsyncDgramRecv {
// Required method
fn poll_recv(
&self,
cx: &mut Context<'_>,
buf: &mut ReadBuf<'_>,
) -> Poll<Result<(), Error>>;
}
Receive a datagram packets asynchronously.