Trait tracing_log::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

§

type Trace = Level

source§

fn as_trace(&self) -> Level

source§

impl AsTrace for LevelFilter

source§

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

§

type Trace = Metadata<'a>

source§

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

source§

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

§

type Trace = Metadata<'a>

source§

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

Implementors§