Function viz::accept_from_stream
source · pub fn accept_from_stream<S, IO, E>(
stream: S
) -> impl Accept<Conn = IO, Error = E>where
S: Stream<Item = Result<IO, E>>,
Available on crate feature
stream
only.Expand description
Adapt a Stream
of incoming connections into an Accept
.
Optional
This function requires enabling the stream
feature in your
Cargo.toml
.