Struct hyper::net::HttpListener [−][src]
pub struct HttpListener(_);
A NetworkListener
for HttpStream
s.
Methods
impl HttpListener
[src]
impl HttpListener
pub fn new<To: ToSocketAddrs>(addr: To) -> Result<HttpListener>
[src]
pub fn new<To: ToSocketAddrs>(addr: To) -> Result<HttpListener>
Start listening to an address over HTTP.
Trait Implementations
impl Clone for HttpListener
[src]
impl Clone for HttpListener
fn clone(&self) -> HttpListener
[src]
fn clone(&self) -> HttpListener
Returns a copy of the value. Read more
fn clone_from(&mut self, source: &Self)
1.0.0[src]
fn clone_from(&mut self, source: &Self)
1.0.0
[src]Performs copy-assignment from source
. Read more
impl From<TcpListener> for HttpListener
[src]
impl From<TcpListener> for HttpListener
fn from(listener: TcpListener) -> HttpListener
[src]
fn from(listener: TcpListener) -> HttpListener
Performs the conversion.
impl NetworkListener for HttpListener
[src]
impl NetworkListener for HttpListener
type Stream = HttpStream
The stream produced for each connection.
fn accept(&mut self) -> Result<HttpStream>
[src]
fn accept(&mut self) -> Result<HttpStream>
Returns an iterator of streams.
fn local_addr(&mut self) -> Result<SocketAddr>
[src]
fn local_addr(&mut self) -> Result<SocketAddr>
Get the address this Listener ended up listening on.
ⓘImportant traits for NetworkConnections<'a, N>fn incoming(&mut self) -> NetworkConnections<Self>
[src]
ⓘImportant traits for NetworkConnections<'a, N>
fn incoming(&mut self) -> NetworkConnections<Self>
Returns an iterator over incoming connections.
impl AsRawFd for HttpListener
[src]
impl AsRawFd for HttpListener
impl FromRawFd for HttpListener
[src]
impl FromRawFd for HttpListener
unsafe fn from_raw_fd(fd: RawFd) -> HttpListener
[src]
unsafe fn from_raw_fd(fd: RawFd) -> HttpListener
Constructs a new instance of Self
from the given raw file descriptor. Read more
Auto Trait Implementations
impl Send for HttpListener
impl Send for HttpListener
impl Sync for HttpListener
impl Sync for HttpListener