[−][src]Trait futures_util::compat::Stream01CompatExt
pub trait Stream01CompatExt: Stream01 { fn compat(self) -> Compat<Self, ()>
where
Self: Sized, { ... } }
Extension trait for futures 0.1 Stream
Provided Methods
fn compat(self) -> Compat<Self, ()> where
Self: Sized,
Self: Sized,
Converts a futures 0.1
Stream<Item = T, Error = E>
into a futures 0.3
Stream<Item = Result<T, E>>
.
Implementors
impl<St: Stream01> Stream01CompatExt for St