Trait AsyncDgramSendEx

Source
pub trait AsyncDgramSendEx: AsyncDgramSend {
    // Provided method
    fn send<'a>(&'a self, buf: &'a [u8]) -> DgramSend<'a, Self> 
       where Self: Unpin { ... }
}
Expand description

Convenience trait that turns poll_send into an asynchronous function.

Provided Methods§

Source

fn send<'a>(&'a self, buf: &'a [u8]) -> DgramSend<'a, Self>
where Self: Unpin,

Asynchronous function to send a packet.

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.

Implementors§