[][src]Struct exitfailure::ExitFailure

pub struct ExitFailure(_);

The newtype wrapper around failure::Error

This example panics
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).

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

Auto Trait Implementations

impl !RefUnwindSafe for ExitFailure

impl Send for ExitFailure

impl Sync for ExitFailure

impl Unpin for ExitFailure

impl !UnwindSafe for ExitFailure

Blanket Implementations

impl<T> Any for T where
    T: 'static + ?Sized
[src]

impl<T> Borrow<T> for T where
    T: ?Sized
[src]

impl<T> BorrowMut<T> for T where
    T: ?Sized
[src]

impl<T> From<!> for T[src]

impl<T> From<T> for T[src]

impl<T, U> Into<U> for T where
    U: From<T>, 
[src]

impl<T, U> TryFrom<U> for T where
    U: Into<T>, 
[src]

type Error = Infallible

The type returned in the event of a conversion error.

impl<T, U> TryInto<U> for T where
    U: TryFrom<T>, 
[src]

type Error = <U as TryFrom<T>>::Error

The type returned in the event of a conversion error.