[][src]Trait tls_listener::AsyncAccept

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

Asynchronously accept connections.

Associated Types

type Connection[src]

The type of the connection that is accepted.

type Error[src]

The type of error that may be returned.

Loading content...

Required methods

pub fn poll_accept(
    self: Pin<&mut Self>,
    cx: &mut Context<'_>
) -> Poll<Result<Self::Connection, Self::Error>>
[src]

Poll to accept the next connection.

Loading content...

Implementations on Foreign Types

impl AsyncAccept for TcpListener[src]

type Connection = TcpStream

type Error = Error

impl AsyncAccept for UnixListener[src]

type Connection = UnixStream

type Error = Error

Loading content...

Implementors

Loading content...