Struct atm_async_utils::SendClose [] [src]

pub struct SendClose<S: Sink>(_);

Future which sends a value down a sink and then closes it.

Methods

impl<S: Sink> SendClose<S>
[src]

[src]

Create a new SendClose future that sends the given Item and then closes the sink.

Trait Implementations

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

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