Struct Failure
aud
pub struct Failure<T> { /* fields omitted */ }
A simple failure that can return an error along with the new state.
impl<T> Failure<T>
fn new(state: T, error: Box<Error>) -> Self
Creates a new failure from a state and an error
fn to_error(self) -> Box<Error>
Truns the Failure into an Err