[][src]Trait izanami_http::Connection

pub trait Connection {
    type Error;
    fn poll_close(&mut self) -> Poll<(), Self::Error>;
fn graceful_shutdown(&mut self); }

An asynchronous object that manages the connection to a remote peer.

Associated Types

type Error

The error type which will returned from this connection.

Loading content...

Required methods

fn poll_close(&mut self) -> Poll<(), Self::Error>

Polls until the all incoming requests are handled and the connection is closed.

fn graceful_shutdown(&mut self)

Notifies a shutdown signal to the connection.

The connection may accept some requests for a while even after receiving this notification.

Loading content...

Implementors

impl<F> Connection for F where
    F: Future<Item = ()>, 
[src]

type Error = F::Error

Loading content...