pub trait SequenceStream: Stream + Sized {
// Provided method
fn sequence<F, U>(self, f: F) -> Sequence<Self, F, U>
where F: FnOnce(Chain<Once<<Self as Stream>::Item, <Self as Stream>::Error>, Self>) -> U,
U: Stream { ... }
}
Provided Methods§
Dyn Compatibility§
This trait is not dyn compatible.
In older versions of Rust, dyn compatibility was called "object safety", so this trait is not object safe.
Implementors§
impl<S> SequenceStream for Swhere
S: Stream,
Implement sequence
for all Stream
s