Trait dangerous::error::Backtrace[][src]

pub trait Backtrace: 'static {
    fn root(&self) -> CoreContext;
fn count(&self) -> usize;
fn walk<'a>(&'a self, f: &mut BacktraceWalker<'a>) -> bool; }
Expand description

Implemented for walkable stacks of Contexts collected from an error.

Required methods

The root context.

Return the total number of contexts.

Walk the context backtrace, starting with the highest context to the root.

Returns true if all of the stack available was walked, false if not.

Implementors