Struct exitfailure::ExitFailure[][src]

pub struct ExitFailure(_);

The newtype wrapper around failure::Error

fn main() -> Result<(), ExitFailure> {
    Ok(some_fn()?)
}

fn some_fn() -> Result<(), failure::Error> {
    let error = Err(failure::err_msg("root cause failure"));
    Ok(error.context("this is some context".to_string())?)
}

Trait Implementations

impl Debug for ExitFailure
[src]

Prints a list of causes for this Error, along with any backtrace information collected by the Error (if RUST_BACKTRACE=1).

Formats the value using the given formatter. Read more

impl<T: Into<Error>> From<T> for ExitFailure
[src]

Performs the conversion.

Auto Trait Implementations

impl Send for ExitFailure

impl Sync for ExitFailure