Struct hyper::net::HttpListener

source ·
pub struct HttpListener { /* private fields */ }
Expand description

A NetworkListener for HttpStreams.

Implementations§

Start listening to an address over HTTP.

Trait Implementations§

Extracts the raw file descriptor. Read more
Returns a copy of the value. Read more
Performs copy-assignment from source. Read more
Converts to this type from the input type.
Constructs a new instance of Self from the given raw file descriptor. Read more
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
Returns an iterator over incoming connections.

Auto Trait Implementations§

Blanket Implementations§

Gets the TypeId of self. Read more
Immutably borrows from an owned value. Read more
Mutably borrows from an owned value. Read more

Returns the argument unchanged.

Calls U::from(self).

That is, this conversion is whatever the implementation of From<T> for U chooses to do.

The resulting type after obtaining ownership.
Creates owned data from borrowed data, usually by cloning. Read more
Uses borrowed data to replace owned data, usually by cloning. Read more
The type returned in the event of a conversion error.
Performs the conversion.
The type returned in the event of a conversion error.
Performs the conversion.
Get the TypeId of this object.