[−][src]Struct exitfailure::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]
T: 'static + ?Sized,
impl<T> Borrow<T> for T where
T: ?Sized,
[src]
T: ?Sized,
impl<T> BorrowMut<T> for T where
T: ?Sized,
[src]
T: ?Sized,
fn borrow_mut(&mut self) -> &mut T
[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]
U: From<T>,
impl<T, U> TryFrom<U> for T where
U: Into<T>,
[src]
U: Into<T>,
type Error = Infallible
The type returned in the event of a conversion error.
fn try_from(value: U) -> Result<T, <T as TryFrom<U>>::Error>
[src]
impl<T, U> TryInto<U> for T where
U: TryFrom<T>,
[src]
U: TryFrom<T>,