hyper::server::accept

Function from_stream

Source
pub fn from_stream<S, IO, E>(stream: S) -> impl Accept<Conn = IO, Error = E>
where S: Stream<Item = Result<IO, E>>,
Expand description

Adapt a Stream of incoming connections into an Accept.

ยงOptional

This function requires enabling the stream feature in your Cargo.toml.