Trait generator_ext::gen::Futerator[][src]

pub trait Futerator {
    type Return;
    fn resume(&mut self) -> Futor<Self::Return>;
}

A Future generator. Resolves to 1 final value, but can be 'called' multiple times to advance the underlying Generator. Returns the Yield variant of State containing a (), to indicate the Generator has yielded. Only returns a Return if the Generator has returned. Any further calls to resume should return None.

Associated Types

Required Methods

Implementations on Foreign Types

impl<'a, G> Futerator for &'a mut G where
    G: Futerator
[src]

Implementors