Struct futures::sink::Send [] [src]

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

Future for the Sink::send combinator, which sends a value to a sink and then waits until the sink has fully flushed.

Methods

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

[src]

Get a shared reference to the inner sink.

Returns None if the future has completed already.

[src]

Get a mutable reference to the inner sink.

Returns None if the future has completed already.

Trait Implementations

impl<S> Debug for Send<S> where
    S: Debug + Sink,
    <S as Sink>::SinkItem: Debug
[src]

[src]

Formats the value using the given formatter. Read more

impl<S> Future for Send<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 Send<S> where
    S: Send,
    <S as Sink>::SinkItem: Send

impl<S> Sync for Send<S> where
    S: Sync,
    <S as Sink>::SinkItem: Sync