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
.