Skip to main content

AsyncDgramSend

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.

Dyn Compatibility§

This trait is dyn compatible.

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

Implementations on Foreign Types§

Source§

impl AsyncDgramSend for UdpSocket

Source§

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

Implementors§