Struct futures::sink::Flush [] [src]

#[must_use = "futures do nothing unless polled"]
pub struct Flush<S> { /* fields omitted */ }

Future for the flush combinator, which polls the sink until all data has been flushed.

Methods

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

[src]

Get a shared reference to the inner sink. Returns None if the sink has already been flushed.

[src]

Get a mutable reference to the inner sink. Returns None if the sink has already been flushed.

[src]

Consume the Flush and return the inner sink. Returns None if the sink has already been flushed.

Trait Implementations

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

[src]

Formats the value using the given formatter. Read more

impl<S> Future for Flush<S> where
    S: Sink
[src]

A successful value

An error

[src]

Attempt to resolve the future to a final value, registering the current task for wakeup if the value is not yet available. Read more

Auto Trait Implementations

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

impl<S> Sync for Flush<S> where
    S: Sync