[][src]Trait status::Context

pub trait Context: Default + Clone + Display + Debug + Send + Sync + 'static {
    fn update(self, replacements: Self) -> Self;
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 update(self, replacements: Self) -> Self

Replace fields in self with those populated in replacements.

fn is_empty(&self) -> bool

Returns true is the Context has no content.

Loading content...

Implementors

impl Context for AdhocContext[src]

impl Context for NoContext[src]

Loading content...