Struct rocket::http::hyper::net::HttpListener [−][src]
pub struct HttpListener { /* fields omitted */ }
Expand description
A NetworkListener
for HttpStream
s.
Implementations
Start listening to an address over HTTP.
Trait Implementations
Performs the conversion.
Constructs a new instance of Self
from the given raw file
descriptor. Read more
type Stream = HttpStream
type Stream = HttpStream
The stream produced for each connection.
Returns an iterator of streams.
Get the address this Listener ended up listening on.
Sets the read timeout for all streams that are accepted
Sets the write timeout for all streams that are accepted
fn incoming(&mut self) -> NetworkConnections<'_, Self>ⓘNotable traits for NetworkConnections<'a, N>impl<'a, N> Iterator for NetworkConnections<'a, N> where
N: 'a + NetworkListener, type Item = Result<<N as NetworkListener>::Stream, Error>;
fn incoming(&mut self) -> NetworkConnections<'_, Self>ⓘNotable traits for NetworkConnections<'a, N>impl<'a, N> Iterator for NetworkConnections<'a, N> where
N: 'a + NetworkListener, type Item = Result<<N as NetworkListener>::Stream, Error>;
Notable traits for NetworkConnections<'a, N>
impl<'a, N> Iterator for NetworkConnections<'a, N> where
N: 'a + NetworkListener, type Item = Result<<N as NetworkListener>::Stream, Error>;
Returns an iterator over incoming connections.
Auto Trait Implementations
impl RefUnwindSafe for HttpListener
impl Send for HttpListener
impl Sync for HttpListener
impl Unpin for HttpListener
impl UnwindSafe for HttpListener
Blanket Implementations
Mutably borrows from an owned value. Read more