Function httpbis::futures_misc::stream_single [] [src]

pub fn stream_single<S>(stream: S) -> StreamSingle<S> where
    S: Stream

Convert a stream into single element future. It is an error, is stream is empty or has more than one element.