Skip to main content

Tracer

Trait Tracer 

Source
pub trait Tracer:
    Send
    + Sync
    + Debug
    + Display {
    // Required methods
    fn trace_tree_name(&self) -> &'static str;
    fn clone_trace(&self) -> Box<dyn Tracer>;
    fn trace(&self, message: &str) -> &dyn Tracer;
    fn info(&self, message: &str) -> &dyn Tracer;
    fn debug(&self, message: &str) -> &dyn Tracer;
    fn warn(&self, message: &str) -> &dyn Tracer;
    fn error(&self, message: &str) -> &dyn Tracer;
    fn span(&self) -> &Span;
}

Required Methods§

Source

fn trace_tree_name(&self) -> &'static str

Source

fn clone_trace(&self) -> Box<dyn Tracer>

Source

fn trace(&self, message: &str) -> &dyn Tracer

Source

fn info(&self, message: &str) -> &dyn Tracer

Source

fn debug(&self, message: &str) -> &dyn Tracer

Source

fn warn(&self, message: &str) -> &dyn Tracer

Source

fn error(&self, message: &str) -> &dyn Tracer

Source

fn span(&self) -> &Span

Trait Implementations§

Source§

impl Clone for Box<dyn Tracer>

Source§

fn clone(&self) -> Box<dyn Tracer>

Returns a duplicate of the value. Read more
1.0.0 (const: unstable) · Source§

fn clone_from(&mut self, source: &Self)

Performs copy-assignment from source. Read more
Source§

impl PartialEq for Box<dyn Tracer>

Source§

fn eq(&self, other: &Self) -> bool

Tests for self and other values to be equal, and is used by ==.
1.0.0 (const: unstable) · Source§

fn ne(&self, other: &Rhs) -> bool

Tests for !=. The default implementation is almost always sufficient, and should not be overridden without very good reason.

Dyn Compatibility§

This trait is dyn compatible.

In older versions of Rust, dyn compatibility was called "object safety".

Implementors§