Struct futures_shuttle::Shuttle [] [src]

pub struct Shuttle<T> { /* fields omitted */ }

This is created by the shuttle function.

Methods

impl<T> Shuttle<T>
[src]

[src]

Checks this Shuttle object for being on my side of the track at this time.

[src]

Access the underlying data item of this Shuttle. Similar to MutexGuard.

[src]

Turns the ownership of this Shuttle object to the other side of the track.

Panics

Panics if the shuttle is stopped. I.e. there is no other side to send it to.

[src]

Attempts to send the shuttle to the other end. If the shuttle is stopped it returns ShuttleError::Stopped error.

Trait Implementations

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

[src]

Formats the value using the given formatter. Read more

impl<T> Drop for Shuttle<T>
[src]

[src]

Executes the destructor for this type. Read more

impl<T> IntoFuture for Shuttle<T>
[src]

The future that this type can be converted into.

The item that the future may resolve with.

The error that the future may resolve with.

[src]

Consumes this object and produces a future.

Auto Trait Implementations

impl<T> Send for Shuttle<T> where
    T: Send

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