pub struct Promise<T, E> {
// some fields omitted
}
Methods
impl<T, E> Promise<T, E> where T: Send + 'static, E: Send + 'static
[src]
fn new<F>(f: F) -> Promise<T, E> where F: Send + 'static + FnOnce() -> Result<T, E>
fn then<TT, F>(self, f: F) -> Promise<TT, E> where F: Send + 'static + FnOnce(T) -> Result<TT, E>, TT: Send + 'static
fn fail<F>(self, f: F) -> Promise<T, E> where F: Send + 'static + FnOnce(E) -> Result<T, E>
fn finally<FT, FE>(self, ft: FT, fe: FE) where FT: Send + 'static + FnOnce(T), FE: Send + 'static + FnOnce(E)
fn finally_sync<FT, FE>(self, ft: FT, fe: FE) where FT: Send + 'static + FnOnce(T), FE: Send + 'static + FnOnce(E)