Struct futures::stream::SplitStream [] [src]

#[must_use = "streams do nothing unless polled"]
pub struct SplitStream<S>(_);

A Stream part of the split pair

Methods

impl<S> SplitStream<S> where
    S: Sink
[src]

[src]

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> Stream for SplitStream<S> where
    S: Stream
[src]

Values yielded by the stream.

Errors yielded by the stream.

[src]

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

impl<S> Debug for SplitStream<S> where
    S: Debug
[src]

[src]

Formats the value using the given formatter. Read more

Auto Trait Implementations

impl<S> Send for SplitStream<S> where
    S: Send

impl<S> Sync for SplitStream<S> where
    S: Send