Trait choices::warp::hyper::server::accept::Accept [−][src]
Asynchronously accept incoming connections.
Associated Types
type Conn
[src]
The connection type that can be accepted.
type Error
[src]
The error type that can occur when accepting a connection.
Required methods
pub 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>>>
Poll to accept the next connection.
Implementors
impl Accept for AddrIncoming
[src]
type Conn = AddrStream
type Error = Error
pub 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>>>