Enum tangle::Async [] [src]

pub enum Async<T, E> {
    Ok(T),
    Err(E),
    Continue(Future<T, E>),
}

Asynchronous version of Result<T, E> that allows for future composition. Additional macros are provided to work with both Async<T, E> and Result<T, E>.

Variants

Methods

impl<T, E> Async<T, E>
[src]

Trait Implementations

impl<T: Debug, E: Debug> Debug for Async<T, E>
[src]

Formats the value using the given formatter.