Struct futures_util::stream::SplitStream
source · [−]pub struct SplitStream<S>(_);
Expand description
A Stream
part of the split pair
Implementations
sourceimpl<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
.
Trait Implementations
sourceimpl<S: Debug> Debug for SplitStream<S>
impl<S: Debug> Debug for SplitStream<S>
sourceimpl<S: Stream> Stream for SplitStream<S>
impl<S: Stream> Stream for SplitStream<S>
impl<S> Unpin for SplitStream<S>
Auto Trait Implementations
impl<S> !RefUnwindSafe for SplitStream<S>
impl<S> Send for SplitStream<S>where
S: Send,
impl<S> Sync for SplitStream<S>where
S: Send,
impl<S> !UnwindSafe for SplitStream<S>
Blanket Implementations
sourceimpl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
const: unstable · sourcefn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more