Struct futures_shuttle::ShuttleWait [] [src]

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

ShuttleWait object is a Future that waits for Shuttle to arrive back. I.e. it completes when the other side calls send on its object and the ownership turns to this object. ShuttleWait is created when Shuttle is converted into Future (it implements IntoFuture) and it consumes the Shuttle object. When the future completes it yields the Shuttle object back.

Trait Implementations

impl<T: Debug> Debug for ShuttleWait<T>
[src]

[src]

Formats the value using the given formatter. Read more

impl<T> Future for ShuttleWait<T>
[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<T> Send for ShuttleWait<T> where
    T: Send

impl<T> Sync for ShuttleWait<T> where
    T: Send