Trait tls_listener::AsyncAccept
source · [−]pub trait AsyncAccept {
type Connection;
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
type Connection
type Connection
The type of the connection that is accepted.
Required methods
fn poll_accept(
self: Pin<&mut Self>,
cx: &mut Context<'_>
) -> Poll<Result<Self::Connection, Self::Error>>
fn poll_accept(
self: Pin<&mut Self>,
cx: &mut Context<'_>
) -> Poll<Result<Self::Connection, Self::Error>>
Poll to accept the next connection.