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