[−][src]Trait tls_listener::AsyncAccept
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.
Required methods
pub fn poll_accept(
self: Pin<&mut Self>,
cx: &mut Context<'_>
) -> Poll<Result<Self::Connection, Self::Error>>
[src]
self: Pin<&mut Self>,
cx: &mut Context<'_>
) -> Poll<Result<Self::Connection, Self::Error>>
Poll to accept the next connection.
Implementations on Foreign Types
impl AsyncAccept for TcpListener
[src]
type Connection = TcpStream
type Error = Error
pub fn poll_accept(
self: Pin<&mut Self>,
cx: &mut Context<'_>
) -> Poll<Result<Self::Connection, Self::Error>>
[src]
self: Pin<&mut Self>,
cx: &mut Context<'_>
) -> Poll<Result<Self::Connection, Self::Error>>
impl AsyncAccept for UnixListener
[src]
type Connection = UnixStream
type Error = Error
pub fn poll_accept(
self: Pin<&mut Self>,
cx: &mut Context<'_>
) -> Poll<Result<Self::Connection, Self::Error>>
[src]
self: Pin<&mut Self>,
cx: &mut Context<'_>
) -> Poll<Result<Self::Connection, Self::Error>>