Trait kparse::TrackedSpan
source · pub trait TrackedSpan<C>where
C: Code,
Self: Sized,{
// Required methods
fn track_enter(&self, func: C);
fn track_debug(&self, debug: String);
fn track_info(&self, info: &'static str);
fn track_warn(&self, warn: &'static str);
fn track_ok(&self, parsed: Self);
fn track_err<E: Debug>(&self, code: C, err: &E);
fn track_exit(&self);
}
Expand description
This trait is implemented for an input type. It takes a tracking event and its raw data, converts if necessary and sends it to the actual tracker.
Required Methods§
sourcefn track_enter(&self, func: C)
fn track_enter(&self, func: C)
Enter a parser function.
sourcefn track_debug(&self, debug: String)
fn track_debug(&self, debug: String)
Track some debug info.
sourcefn track_info(&self, info: &'static str)
fn track_info(&self, info: &'static str)
Track some other info.
sourcefn track_warn(&self, warn: &'static str)
fn track_warn(&self, warn: &'static str)
Track some warning.
sourcefn track_ok(&self, parsed: Self)
fn track_ok(&self, parsed: Self)
Calls exit_ok() on the ParseContext. You might want to use ok() instead.
sourcefn track_err<E: Debug>(&self, code: C, err: &E)
fn track_err<E: Debug>(&self, code: C, err: &E)
Calls exit_err() on the ParseContext. You might want to use err() instead.
sourcefn track_exit(&self)
fn track_exit(&self)
Calls exit() on the ParseContext. You might want to use err() or ok() instead.
Object Safety§
This trait is not object safe.