Trait tracing_log::AsLog

source ·
pub trait AsLog: Sealed {
    type Log;

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

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

Required Associated Types§

source

type Log

The log type that this type can be converted into.

Required Methods§

source

fn as_log(&self) -> Self::Log

Returns the log equivalent of self.

Implementations on Foreign Types§

source§

impl AsLog for Level

§

type Log = Level

source§

fn as_log(&self) -> Level

source§

impl AsLog for LevelFilter

§

type Log = LevelFilter

source§

fn as_log(&self) -> Self::Log

source§

impl<'a> AsLog for Metadata<'a>

§

type Log = Metadata<'a>

source§

fn as_log(&self) -> Self::Log

Implementors§