Type Alias Poll

Source
pub type Poll<T, E> = Result<Async<T>, E>;
Expand description

Return type of the Future::poll method, indicates whether a future’s value is ready or not.

  • Ok(Async::Ready(t)) means that a future has successfully resolved
  • Ok(Async::NotReady) means that a future is not ready to complete yet
  • Err(e) means that a future has completed with the given failure

Aliased Type§

enum Poll<T, E> {
    Ok(Async<T>),
    Err(E),
}

Variants§

§1.0.0

Ok(Async<T>)

Contains the success value

§1.0.0

Err(E)

Contains the error value