std::future::Future

Rust futures are std::future::Futures. Types which implement the trait expose the represented values through the method poll. The method returns a Enum Poll: Ready(T) when the value is ready, or Pending if not.

Poll definition:

pub enum Poll<T> {
    Ready(T),
    Pending,
}

Diagram: Obtaining value of a std::future::Future.