[][src]Trait status::Context

pub trait Context: Default + Clone + Display + Debug + Send + Sync + 'static {
    fn is_empty(&self) -> bool;
}

Adds nuance to errors.

Goals:

  • Easily add context for any Kind at each level of the call stack.
  • Programmatic access to the context.
  • User-friendly without losing helpful debug information.

Required methods

fn is_empty(&self) -> bool

Returns true is the Context has no content.

Loading content...

Implementors

impl Context for NoContext[src]

Loading content...