[][src]Struct futures_util::stream::SplitSink

pub struct SplitSink<S: Sink> { /* fields omitted */ }

A Sink part of the split pair

Methods

impl<S: Sink + Unpin> SplitSink<S>
[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: Debug + Sink> Debug for SplitSink<S> where
    S::SinkItem: Debug
[src]

Formats the value using the given formatter. Read more

impl<S: Sink> Unpin for SplitSink<S>
[src]

impl<S: Sink> Sink for SplitSink<S>
[src]

The type of value that the sink accepts.

The type of value produced by the sink when an error occurs.

Attempts to prepare the Sink to receive a value. Read more

Begin the process of sending a value to the sink. Each call to this function must be proceeded by a successful call to poll_ready which returned Ok(Poll::Ready(())). Read more

Flush any remaining output from this sink. Read more

Flush any remaining output and close this sink, if necessary. Read more

Auto Trait Implementations

impl<S> Send for SplitSink<S> where
    S: Send,
    <S as Sink>::SinkItem: Send

impl<S> Sync for SplitSink<S> where
    S: Send,
    <S as Sink>::SinkItem: Sync