[−][src]Trait roa::Accept
Asynchronously accept incoming connections.
Associated Types
type Conn
The connection type that can be accepted.
type Error
The error type that can occur when accepting a connection.
Required methods
fn poll_accept(
self: Pin<&mut Self>,
cx: &mut Context
) -> Poll<Option<Result<Self::Conn, Self::Error>>>
self: Pin<&mut Self>,
cx: &mut Context
) -> Poll<Option<Result<Self::Conn, Self::Error>>>
Poll to accept the next connection.
Implementations on Foreign Types
impl Accept for AddrIncoming
[src]
type Conn = AddrStream
type Error = Error
fn poll_accept(
self: Pin<&mut AddrIncoming>,
cx: &mut Context
) -> Poll<Option<Result<<AddrIncoming as Accept>::Conn, <AddrIncoming as Accept>::Error>>>
[src]
self: Pin<&mut AddrIncoming>,
cx: &mut Context
) -> Poll<Option<Result<<AddrIncoming as Accept>::Conn, <AddrIncoming as Accept>::Error>>>
Implementors
impl Accept for TcpIncoming
[src]
type Conn = AddrStream<TcpStream>
type Error = Error
fn poll_accept(
self: Pin<&mut Self>,
cx: &mut Context
) -> Poll<Option<Result<Self::Conn, Self::Error>>>
[src]
self: Pin<&mut Self>,
cx: &mut Context
) -> Poll<Option<Result<Self::Conn, Self::Error>>>
impl<I, IO> Accept for TlsIncoming<I> where
IO: 'static + Send + Sync + Unpin + AsyncRead + AsyncWrite,
I: Unpin + Accept<Conn = AddrStream<IO>>,
[src]
IO: 'static + Send + Sync + Unpin + AsyncRead + AsyncWrite,
I: Unpin + Accept<Conn = AddrStream<IO>>,