Struct futures_util::stream::SplitStream
source · pub struct SplitStream<S>(_);
Expand description
A Stream
part of the split pair
Implementations§
source§impl<S: Unpin> SplitStream<S>
impl<S: Unpin> SplitStream<S>
sourcepub fn reunite<Item>(
self,
other: SplitSink<S, Item>
) -> Result<S, ReuniteError<S, Item>>where
S: Sink<Item>,
pub fn reunite<Item>( self, other: SplitSink<S, Item> ) -> Result<S, ReuniteError<S, Item>>where S: Sink<Item>,
Attempts to put the two “halves” of a split Stream + Sink
back
together. Succeeds only if the SplitStream<S>
and SplitSink<S>
are
a matching pair originating from the same call to StreamExt::split
.