Struct futures_shuttle::Shuttle
[−]
[src]
pub struct Shuttle<T> { /* fields omitted */ }
This is created by the shuttle
function.
Methods
impl<T> Shuttle<T>
[src]
pub fn is_mine(&self) -> bool
[src]
Checks this Shuttle
object for being on my side of the track at this time
pub fn get(&self) -> ShuttleValue<T>
[src]
pub fn set(&mut self, item: T)
[src]
Set new value for the object guarded by Shuttle
pub fn send(&self)
[src]
Turn the ownership of this Shuttle
object to the other side of the track
Trait Implementations
impl<T: Debug> Debug for Shuttle<T>
[src]
fn fmt(&self, __arg_0: &mut Formatter) -> Result
[src]
Formats the value using the given formatter. Read more
impl<T> IntoFuture for Shuttle<T>
[src]
type Future = ShuttleWait<T>
The future that this type can be converted into.
type Item = Shuttle<T>
The item that the future may resolve with.
type Error = ShuttleError
The error that the future may resolve with.
fn into_future(self) -> Self::Future
[src]
Consumes this object and produces a future.