🛈 Note: This is pre-release documentation for the upcoming tracing 0.2.0 ecosystem.

For the release documentation, please see docs.rs, instead.

tracing_log

Trait AsTrace

Source
pub trait AsTrace: Sealed {
    type Trace;

    // Required method
    fn as_trace(&self) -> Self::Trace;
}
Expand description

Trait implemented for log types that can be converted to a tracing equivalent.

Required Associated Types§

Source

type Trace

The tracing type that this type can be converted into.

Required Methods§

Source

fn as_trace(&self) -> Self::Trace

Returns the tracing equivalent of self.

Implementations on Foreign Types§

Source§

impl AsTrace for Level

Source§

type Trace = Level

Source§

fn as_trace(&self) -> Level

Source§

impl AsTrace for LevelFilter

Source§

type Trace = LevelFilter

Source§

fn as_trace(&self) -> LevelFilter

Source§

impl<'a> AsTrace for Metadata<'a>

Source§

type Trace = Metadata<'a>

Source§

fn as_trace(&self) -> Self::Trace

Source§

impl<'a> AsTrace for Record<'a>

Source§

type Trace = Metadata<'a>

Source§

fn as_trace(&self) -> Self::Trace

Implementors§