pub trait RawPoolBufDatagramIo: Send {
// Required methods
fn poll_send_datagrams(
&mut self,
cx: &mut Context<'_>,
datagrams: &mut [DgramBuffer],
) -> Poll<Result<usize>>;
fn poll_recv_dgram(
&mut self,
cx: &mut Context<'_>,
) -> Poll<Result<DgramBuffer>>;
// Provided method
fn poll_recv_datagrams(
&mut self,
cx: &mut Context<'_>,
buffer: &mut Vec<DgramBuffer>,
dgram_limit: usize,
) -> Poll<Result<usize>> { ... }
}Required Methods§
fn poll_send_datagrams( &mut self, cx: &mut Context<'_>, datagrams: &mut [DgramBuffer], ) -> Poll<Result<usize>>
fn poll_recv_dgram(&mut self, cx: &mut Context<'_>) -> Poll<Result<DgramBuffer>>
Provided Methods§
fn poll_recv_datagrams( &mut self, cx: &mut Context<'_>, buffer: &mut Vec<DgramBuffer>, dgram_limit: usize, ) -> Poll<Result<usize>>
Dyn Compatibility§
This trait is dyn compatible.
In older versions of Rust, dyn compatibility was called "object safety".