pub trait AsyncAccept {
    type Connection: AsyncRead + AsyncWrite;
    type Error;
    fn poll_accept(
        self: Pin<&mut Self>,
        cx: &mut Context<'_>
    ) -> Poll<Result<Self::Connection, Self::Error>>; }
Expand description

Asynchronously accept connections.

Associated Types

The type of the connection that is accepted.

The type of error that may be returned.

Required methods

Poll to accept the next connection.

Implementations on Foreign Types

Implementors