Struct futures_util::future::FlattenSink [] [src]

pub struct FlattenSink<F> where
    F: Future,
    <F as Future>::Item: Sink
{ /* fields omitted */ }

Future for the flatten_sink combinator, flattening a future-of-a-sink to get just the result of the final sink as a sink.

This is created by the Future::flatten_sink method.

Trait Implementations

impl<F> Debug for FlattenSink<F> where
    F: Future + Debug,
    <F as Future>::Item: Sink<SinkError = F::Error> + Debug
[src]

[src]

Formats the value using the given formatter. Read more

impl<F> Sink for FlattenSink<F> where
    F: Future,
    <F as Future>::Item: Sink<SinkError = F::Error>, 
[src]

The type of value that the sink accepts.

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

[src]

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

[src]

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(Async::Ready(())). Read more

[src]

Flush any remaining output from this sink. Read more

[src]

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

Auto Trait Implementations

impl<F> Send for FlattenSink<F> where
    F: Send,
    <F as Future>::Item: Send

impl<F> Sync for FlattenSink<F> where
    F: Sync,
    <F as Future>::Item: Sync