Trait hyper::server::accept::Accept

source ·
pub trait Accept {
    type Conn;
    type Error;

    fn poll_accept(
        self: Pin<&mut Self>,
        cx: &mut Context<'_>
    ) -> Poll<Option<Result<Self::Conn, Self::Error>>>; }
Available on crate feature server only.
Expand description

Asynchronously accept incoming connections.

Required Associated Types§

source

type Conn

The connection type that can be accepted.

source

type Error

The error type that can occur when accepting a connection.

Required Methods§

source

fn poll_accept(
    self: Pin<&mut Self>,
    cx: &mut Context<'_>
) -> Poll<Option<Result<Self::Conn, Self::Error>>>

Poll to accept the next connection.

Implementors§