domain::net::client::protocol

Trait AsyncDgramSend

source
pub trait AsyncDgramSend {
    // Required method
    fn poll_send(
        &self,
        cx: &mut Context<'_>,
        buf: &[u8],
    ) -> Poll<Result<usize, Error>>;
}
Expand description

Send a datagram packet asynchronously.

Required Methods§

source

fn poll_send( &self, cx: &mut Context<'_>, buf: &[u8], ) -> Poll<Result<usize, Error>>

Polled send function.

Implementations on Foreign Types§

source§

impl AsyncDgramSend for UdpSocket

source§

fn poll_send( &self, cx: &mut Context<'_>, buf: &[u8], ) -> Poll<Result<usize, Error>>

Implementors§