[][src]Trait hyper::server::accept::Accept

pub trait Accept {
    type Conn;
    type Error;
    pub fn poll_accept(
        self: Pin<&mut Self>,
        cx: &mut Context<'_>
    ) -> Poll<Option<Result<Self::Conn, Self::Error>>>; }
This is supported on crate feature server and (crate features http1 or http2) only.

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.

Loading content...

Required methods

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

Poll to accept the next connection.

Loading content...

Implementors

impl Accept for AddrIncoming[src]

type Conn = AddrStream

type Error = Error

Loading content...