Struct futures::future::FlattenSink [−][src]
pub struct FlattenSink<F, S>(_);
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, S> Sink for FlattenSink<F, S> where
F: TryFuture<Ok = S>,
S: Sink<SinkError = <F as TryFuture>::Error>,
[src]
impl<F, S> Sink for FlattenSink<F, S> where
F: TryFuture<Ok = S>,
S: Sink<SinkError = <F as TryFuture>::Error>,
type SinkItem = <S as Sink>::SinkItem
The type of value that the sink accepts.
type SinkError = <S as Sink>::SinkError
The type of value produced by the sink when an error occurs.
fn poll_ready(
self: PinMut<FlattenSink<F, S>>,
cx: &mut Context
) -> Poll<Result<(), <FlattenSink<F, S> as Sink>::SinkError>>
[src]
fn poll_ready(
self: PinMut<FlattenSink<F, S>>,
cx: &mut Context
) -> Poll<Result<(), <FlattenSink<F, S> as Sink>::SinkError>>
Attempts to prepare the Sink
to receive a value. Read more
fn start_send(
self: PinMut<FlattenSink<F, S>>,
item: <FlattenSink<F, S> as Sink>::SinkItem
) -> Result<(), <FlattenSink<F, S> as Sink>::SinkError>
[src]
fn start_send(
self: PinMut<FlattenSink<F, S>>,
item: <FlattenSink<F, S> as Sink>::SinkItem
) -> Result<(), <FlattenSink<F, S> as Sink>::SinkError>
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
fn poll_flush(
self: PinMut<FlattenSink<F, S>>,
cx: &mut Context
) -> Poll<Result<(), <FlattenSink<F, S> as Sink>::SinkError>>
[src]
fn poll_flush(
self: PinMut<FlattenSink<F, S>>,
cx: &mut Context
) -> Poll<Result<(), <FlattenSink<F, S> as Sink>::SinkError>>
Flush any remaining output from this sink. Read more
fn poll_close(
self: PinMut<FlattenSink<F, S>>,
cx: &mut Context
) -> Poll<Result<(), <FlattenSink<F, S> as Sink>::SinkError>>
[src]
fn poll_close(
self: PinMut<FlattenSink<F, S>>,
cx: &mut Context
) -> Poll<Result<(), <FlattenSink<F, S> as Sink>::SinkError>>
Flush any remaining output and close this sink, if necessary. Read more
impl<F, S> Unpin for FlattenSink<F, S> where
F: Unpin,
S: Unpin,
[src]
impl<F, S> Unpin for FlattenSink<F, S> where
F: Unpin,
S: Unpin,
impl<F, S> Debug for FlattenSink<F, S> where
F: Debug,
S: Debug,
[src]
impl<F, S> Debug for FlattenSink<F, S> where
F: Debug,
S: Debug,
Auto Trait Implementations
impl<F, S> Send for FlattenSink<F, S> where
F: Send,
S: Send,
impl<F, S> Send for FlattenSink<F, S> where
F: Send,
S: Send,
impl<F, S> Sync for FlattenSink<F, S> where
F: Sync,
S: Sync,
impl<F, S> Sync for FlattenSink<F, S> where
F: Sync,
S: Sync,