Trait AsyncSend

Source
pub trait AsyncSend {
    // Required method
    fn poll_send(
        &mut self,
        cx: &mut Context<'_>,
        bufs: &[IoSlice<'_>],
    ) -> Poll<Result<()>>;
}
Expand description

A trait implemented by types that can send datagrams.

Required Methods§

Source

fn poll_send( &mut self, cx: &mut Context<'_>, bufs: &[IoSlice<'_>], ) -> Poll<Result<()>>

Polls to send a datagram given by bufs.

There are no partial sends–either the datagram is sent or it is not.

Implementations on Foreign Types§

Source§

impl<T: AsyncSend + ?Sized> AsyncSend for &mut T

Source§

fn poll_send( &mut self, cx: &mut Context<'_>, bufs: &[IoSlice<'_>], ) -> Poll<Result<()>>

Implementors§

Source§

impl<M: RingMem> AsyncSend for MessagePipe<M>

Source§

impl<M: RingMem> AsyncSend for MessageWriteHalf<'_, M>