Enum promising_future::Pollresult [] [src]

pub enum Pollresult<T> {
    Unresolved(Future<T>),
    Resolved(Option<T>),
}

Result of calling Future.poll().

Variants

Unresolved

Future is not yet resolved; returns the Future for further use.

Resolved

Future has been resolved, and may or may not have a value. The Future has been consumed.

Trait Implementations

impl<T> From<Pollresult<T>> for Pollresult<T>

fn from(res: Pollresult<T>) -> Self

Derived Implementations

impl<T: Debug> Debug for Pollresult<T>

fn fmt(&self, __arg_0: &mut Formatter) -> Result