[−][src]Struct futures_util::stream::SplitStream
#[must_use = "streams do nothing unless polled"]pub struct SplitStream<S>(_);
A Stream
part of the split pair
Methods
impl<S: Sink + Unpin> SplitStream<S>
[src]
impl<S: Sink + Unpin> SplitStream<S>
pub fn reunite(self, other: SplitSink<S>) -> Result<S, ReuniteError<S>>
[src]
pub fn reunite(self, other: SplitSink<S>) -> Result<S, ReuniteError<S>>
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 Stream::split
.
Trait Implementations
impl<S: Debug> Debug for SplitStream<S>
[src]
impl<S: Debug> Debug for SplitStream<S>
fn fmt(&self, f: &mut Formatter) -> Result
[src]
fn fmt(&self, f: &mut Formatter) -> Result
Formats the value using the given formatter. Read more
impl<S> Unpin for SplitStream<S>
[src]
impl<S> Unpin for SplitStream<S>
impl<S: Stream> Stream for SplitStream<S>
[src]
impl<S: Stream> Stream for SplitStream<S>
type Item = S::Item
Values yielded by the stream.
fn poll_next(self: PinMut<Self>, cx: &mut Context) -> Poll<Option<S::Item>>
[src]
fn poll_next(self: PinMut<Self>, cx: &mut Context) -> Poll<Option<S::Item>>
Attempt to pull out the next value of this stream, registering the current task for wakeup if the value is not yet available, and returning None
if the stream is exhausted. Read more
Auto Trait Implementations
impl<S> Send for SplitStream<S> where
S: Send,
impl<S> Send for SplitStream<S> where
S: Send,
impl<S> Sync for SplitStream<S> where
S: Send,
impl<S> Sync for SplitStream<S> where
S: Send,