Struct hyper::net::HttpListener [] [src]

pub struct HttpListener(_);

A NetworkListener for HttpStreams.

Methods

impl HttpListener

fn new<To: ToSocketAddrs>(addr: To) -> Result<HttpListener>

Start listening to an address over HTTP.

Trait Implementations

impl Clone for HttpListener

fn clone(&self) -> HttpListener

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

impl From<TcpListener> for HttpListener

fn from(listener: TcpListener) -> HttpListener

impl NetworkListener for HttpListener

type Stream = HttpStream

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

fn local_addr(&mut self) -> Result<SocketAddr>

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

impl AsRawFd for HttpListener

fn as_raw_fd(&self) -> RawFd

impl FromRawFd for HttpListener

unsafe fn from_raw_fd(fd: RawFd) -> HttpListener