Enum hyper::net::HttpAcceptor [-]  [+] [src]

pub enum HttpAcceptor {
    Http(TcpAcceptor, SocketAddr),
    Https(TcpAcceptor, SocketAddr, Arc<SslContext>),
}

A NetworkAcceptor for HttpStreams.

Variants

Http

Http variant.

Https

Https variant.

Trait Implementations

impl NetworkAcceptor for HttpAcceptor

type Stream = HttpStream

fn accept(&mut self) -> IoResult<HttpStream>

fn close(&mut self) -> IoResult<()>

fn socket_name(&self) -> IoResult<SocketAddr>

fn incoming(&mut self) -> NetworkConnections<Self>

Derived Implementations

impl Clone for HttpAcceptor

fn clone(&self) -> HttpAcceptor

fn clone_from(&mut self, source: &Self)