pub struct ExitFailure(/* private fields */);Expand description
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§
Source§impl Debug for ExitFailure
Prints a list of causes for this Error, along with any backtrace
information collected by the Error (if RUST_BACKTRACE=1).
impl Debug for ExitFailure
Prints a list of causes for this Error, along with any backtrace information collected by the Error (if RUST_BACKTRACE=1).
Auto Trait Implementations§
impl Freeze for ExitFailure
impl !RefUnwindSafe for ExitFailure
impl Send for ExitFailure
impl Sync for ExitFailure
impl Unpin for ExitFailure
impl !UnwindSafe for ExitFailure
Blanket Implementations§
Source§impl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
Source§fn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more