pub trait AsyncSend {
// Required method
fn poll_send(
&mut self,
cx: &mut Context<'_>,
bufs: &[IoSlice<'_>],
) -> Poll<Result<()>>;
}
Expand description
A trait implemented by types that can send datagrams.
pub trait AsyncSend {
// Required method
fn poll_send(
&mut self,
cx: &mut Context<'_>,
bufs: &[IoSlice<'_>],
) -> Poll<Result<()>>;
}
A trait implemented by types that can send datagrams.