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]
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).
fn fmt(&self, f: &mut Formatter) -> Result
[src]
fn fmt(&self, f: &mut Formatter) -> Result
Formats the value using the given formatter. Read more
impl<T: Into<Error>> From<T> for ExitFailure
[src]
impl<T: Into<Error>> From<T> for ExitFailure
fn from(t: T) -> ExitFailure
[src]
fn from(t: T) -> ExitFailure
Performs the conversion.
Auto Trait Implementations
impl Send for ExitFailure
impl Send for ExitFailure
impl Sync for ExitFailure
impl Sync for ExitFailure