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]
fn fmt(&self, __arg_0: &mut Formatter) -> Result
[src]
Formats the value using the given formatter. Read more
impl<T> Future for ShuttleWait<T>
[src]
Auto Trait Implementations
impl<T> Send for ShuttleWait<T> where
T: Send,
T: Send,
impl<T> Sync for ShuttleWait<T> where
T: Send,
T: Send,