[−][src]Struct hyper::net::HttpListener
A NetworkListener
for HttpStream
s.
Methods
impl HttpListener
[src]
pub fn new<To: ToSocketAddrs>(addr: To) -> Result<HttpListener>
[src]
Start listening to an address over HTTP.
Trait Implementations
impl NetworkListener for HttpListener
[src]
type Stream = HttpStream
The stream produced for each connection.
fn accept(&mut self) -> Result<HttpStream>
[src]
fn local_addr(&mut self) -> Result<SocketAddr>
[src]
fn set_read_timeout(&mut self, duration: Option<Duration>)
[src]
fn set_write_timeout(&mut self, duration: Option<Duration>)
[src]
ⓘImportant traits for NetworkConnections<'a, N>fn incoming(&mut self) -> NetworkConnections<Self>
[src]
ⓘImportant traits for NetworkConnections<'a, N>
Returns an iterator over incoming connections.
impl Clone for HttpListener
[src]
fn clone(&self) -> HttpListener
[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]
fn from(listener: TcpListener) -> HttpListener
[src]
impl AsRawFd for HttpListener
[src]
impl FromRawFd for HttpListener
[src]
unsafe fn from_raw_fd(fd: RawFd) -> HttpListener
[src]
Auto Trait Implementations
impl Unpin for HttpListener
impl Sync for HttpListener
impl Send for HttpListener
impl UnwindSafe for HttpListener
impl RefUnwindSafe for HttpListener
Blanket Implementations
impl<T> ToOwned for T where
T: Clone,
[src]
T: Clone,
type Owned = T
The resulting type after obtaining ownership.
fn to_owned(&self) -> T
[src]
fn clone_into(&self, target: &mut T)
[src]
impl<T> From<T> for T
[src]
impl<T, U> Into<U> for T where
U: From<T>,
[src]
U: From<T>,
impl<T, U> TryFrom<U> for T where
U: Into<T>,
[src]
U: Into<T>,
type Error = Infallible
The type returned in the event of a conversion error.
fn try_from(value: U) -> Result<T, <T as TryFrom<U>>::Error>
[src]
impl<T, U> TryInto<U> for T where
U: TryFrom<T>,
[src]
U: TryFrom<T>,
type Error = <U as TryFrom<T>>::Error
The type returned in the event of a conversion error.
fn try_into(self) -> Result<U, <U as TryFrom<T>>::Error>
[src]
impl<T> Borrow<T> for T where
T: ?Sized,
[src]
T: ?Sized,
impl<T> BorrowMut<T> for T where
T: ?Sized,
[src]
T: ?Sized,
fn borrow_mut(&mut self) -> &mut T
[src]
impl<T> Any for T where
T: 'static + ?Sized,
[src]
T: 'static + ?Sized,
impl<T> Typeable for T where
T: Any,
[src]
T: Any,