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§
Sourcefn to_chain<'a>(&'a self) -> StackChain<'a> ⓘwhere
Self: Sized,
fn to_chain<'a>(&'a self) -> StackChain<'a> ⓘwhere
Self: Sized,
Returns a StackChain
that walks this error stack from the top.
Sourcefn last<'a>(&'a self) -> ErrorDetail<'a>where
Self: Sized,
fn last<'a>(&'a self) -> ErrorDetail<'a>where
Self: Sized,
Returns the deepest ErrorDetail
in the chain.