Struct futures::sink::Close[][src]

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

Future for the close combinator, which polls the sink until all data has been closed.

Methods

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

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

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

Consume the Close and return the inner sink. Returns None if the sink has already been closed.

Trait Implementations

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

Formats the value using the given formatter. Read more

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

A successful value

An error

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 Close<S> where
    S: Send

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