pub trait TrackedSpan<C>{
// 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.
Dyn Compatibility§
This trait is not dyn compatible.
In older versions of Rust, dyn compatibility was called "object safety", so this trait is not object safe.