Trait await::Await
[−]
[src]
pub trait Await<T> { fn await(self) -> T; }
Represents then notion of something that we could have to await for.
The keyword await could be added to the language.
Required Methods
fn await(self) -> T
It will return a value when it's ready
Implementors
impl<T> Await<T> for Future<T>
impl<'a, T: ?Sized> Await<LockResult<MutexGuard<'a, T>>> for &'a Mutex<T>
impl<'a> Await<BarrierWaitResult> for &'a Barrier
impl<'a, T> Await<Result<T, RecvError>> for &'a Receiver<T>
impl<T> Await<Result<T, Box<Any + Send + 'static>>> for JoinHandle<T>
impl<'a, T> Await<T> for Box<AwaitBox<T> + 'a>
impl<'a, T> Await<T> for Box<AwaitBox<T> + Send + 'a>
impl<T> Await<T> for AwaitValue<T>