StackErrorExt

Trait StackErrorExt 

Source
pub trait StackErrorExt: StackError {
    // Provided methods
    fn to_chain<'a>(&'a self) -> StackChain<'a> 
       where Self: Sized { ... }
    fn last<'a>(&'a self) -> ErrorDetail<'a>
       where Self: Sized { ... }
}
Expand description

Convenience helpers for types implementing StackError.

Provided Methods§

Source

fn to_chain<'a>(&'a self) -> StackChain<'a>
where Self: Sized,

Returns a StackChain that walks this error stack from the top.

Source

fn last<'a>(&'a self) -> ErrorDetail<'a>
where Self: Sized,

Returns the deepest ErrorDetail in the chain.

Implementors§