Trait coreplus::net::AsyncSendTo[][src]

pub trait AsyncSendTo {
    type Error;
    fn poll_send_to(
        self: Pin<&mut Self>,
        cx: &mut Context<'_>,
        buf: &[u8],
        addr: SocketAddr
    ) -> Poll<Result<usize, Self::Error>>; }
Expand description

This is intended for async datagram IO.

Associated Types

The associated error type.

Required methods

A non-blocking, poll-based variant of std::net::UdpSocket::send_to.

This doesn’t have to be implemented as async. The implementation for std::net::UdpSocket is blocking.

Implementations on Foreign Types

Implementors