pub trait Accept {
type Conn;
type Error;
fn poll_accept(
self: Pin<&mut Self>,
cx: &mut Context<'_>
) -> Poll<Option<Result<Self::Conn, Self::Error>>>;
}
Expand description
Asynchronously accept incoming connections.
Associated Types
Required methods
Implementations on Foreign Types
type Conn = AddrStream
pub fn poll_accept(
self: Pin<&mut AddrIncoming>,
cx: &mut Context<'_>
) -> Poll<Option<Result<<AddrIncoming as Accept>::Conn, <AddrIncoming as Accept>::Error>>>
Implementors
type Conn = AddrStream<TcpStream>
impl<I, IO> Accept for TlsIncoming<I> where
IO: 'static + Send + Sync + Unpin + AsyncRead + AsyncWrite,
I: Unpin + Accept<Conn = AddrStream<IO>>,
This is supported on crate feature tls
only.
impl<I, IO> Accept for TlsIncoming<I> where
IO: 'static + Send + Sync + Unpin + AsyncRead + AsyncWrite,
I: Unpin + Accept<Conn = AddrStream<IO>>,
This is supported on crate feature
tls
only.