Skip to main content

AsyncDgramRecv

Trait AsyncDgramRecv 

Source
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.

Required Methods§

Source

fn poll_recv( &self, cx: &mut Context<'_>, buf: &mut ReadBuf<'_>, ) -> Poll<Result<(), Error>>

Polled receive.

Dyn Compatibility§

This trait is dyn compatible.

In older versions of Rust, dyn compatibility was called "object safety".

Implementations on Foreign Types§

Source§

impl AsyncDgramRecv for UdpSocket

Source§

fn poll_recv( &self, cx: &mut Context<'_>, buf: &mut ReadBuf<'_>, ) -> Poll<Result<(), Error>>

Implementors§