pub trait StackError: Error {
// Required methods
fn location(&self) -> &'static Location<'static>;
fn next<'a>(&'a self) -> Option<ErrorDetail<'a>>;
// Provided method
fn iter<'a>(&'a self) -> Iter<'a> ⓘ
where Self: Sized { ... }
}
Expand description
Error types that can report a stack trace-like chain.
Required Methods§
Sourcefn next<'a>(&'a self) -> Option<ErrorDetail<'a>>
fn next<'a>(&'a self) -> Option<ErrorDetail<'a>>
Returns the next detail in the stack.