Struct tangle::Promise [] [src]

pub struct Promise<T, E = ()> {
    // some fields omitted
}

Methods

impl<T, E> Promise<T, E> where T: Send + 'static, E: Send + 'static

fn new() -> Promise<T, E>

use tangle::{Promise};
let mut p = Promise::<u32, ()>::new();

p.future();

fn future(&mut self) -> Future<T, E>

Trait Implementations

Derived Implementations

impl<T: Debug, E: Debug> Debug for Promise<T, E>

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