Struct alternate_future::Future
[−]
[src]
pub struct Future<T>(_)
where
T: Send + 'static;
Methods
impl<T> Future<T> where
T: Send + 'static,
[src]
T: Send + 'static,
fn present(val: T) -> Future<T>
fn poll(&mut self) -> FutureState
fn await(self) -> AwaitResult<T>
fn then<F, U>(self, cont: F) -> Future<U> where
F: FnOnce(T) -> U + Send + 'static,
U: Send + 'static,
F: FnOnce(T) -> U + Send + 'static,
U: Send + 'static,
impl<T, E> Future<Result<T, E>> where
T: Send + 'static,
E: Send + From<AwaitError> + 'static,
[src]
T: Send + 'static,
E: Send + From<AwaitError> + 'static,