pub trait AsyncRecvExt: AsyncRecv {
// Provided methods
fn recv<'a>(&'a mut self, buf: &'a mut [u8]) -> Recv<'a, Self> ⓘ { ... }
fn recv_exact<'a>(&'a mut self, buf: &'a mut [u8]) -> RecvExact<'a, Self> ⓘ { ... }
fn recv_vectored<'a>(
&'a mut self,
bufs: &'a mut [IoSliceMut<'a>],
) -> RecvVectored<'a, Self> ⓘ { ... }
}
Expand description
Extension trait for AsyncRecv
.
Provided Methods§
Sourcefn recv_exact<'a>(&'a mut self, buf: &'a mut [u8]) -> RecvExact<'a, Self> ⓘ
fn recv_exact<'a>(&'a mut self, buf: &'a mut [u8]) -> RecvExact<'a, Self> ⓘ
Receive a datagram into buf
, failing if its size is not exactly the
size of buf
.
Sourcefn recv_vectored<'a>(
&'a mut self,
bufs: &'a mut [IoSliceMut<'a>],
) -> RecvVectored<'a, Self> ⓘ
fn recv_vectored<'a>( &'a mut self, bufs: &'a mut [IoSliceMut<'a>], ) -> RecvVectored<'a, Self> ⓘ
Read a single datagram into bufs
.
Slice will be written in order, with the next one used only after the previous one is completely filled.
Dyn Compatibility§
This trait is not dyn compatible.
In older versions of Rust, dyn compatibility was called "object safety", so this trait is not object safe.