pub trait RecvDatagramExt {
type Buf: Buf;
type Error: Into<Box<dyn Error>>;
// Required method
fn poll_accept_datagram(
&mut self,
cx: &mut Context<'_>,
) -> Poll<Result<Option<Self::Buf>, Self::Error>>;
}Expand description
Extends the Connection trait for receiving datagrams