Trait domain::net::client::protocol::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.

Implementations on Foreign Types§

source§

impl AsyncDgramRecv for UdpSocket

source§

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

Implementors§