Trait TrivialSinkType

Source
pub trait TrivialSinkType: Send + 'static {
    const TRACE_LOG: bool;
    const SINK_NAME: &'static str;
}

Required Associated Constants§

Source

const TRACE_LOG: bool

Whether to enable trace log for every item to sink.

Note that logs (tracing events) with trace level will be optimized out in release build thus cannot be enabled at all. This is for debugging purpose only.

Source

const SINK_NAME: &'static str

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.

Implementors§

Source§

impl TrivialSinkType for BlackHole

Source§

const SINK_NAME: &'static str = BLACKHOLE_SINK

Source§

const TRACE_LOG: bool = true

Source§

impl TrivialSinkType for Table

Source§

const SINK_NAME: &'static str = TABLE_SINK

Source§

const TRACE_LOG: bool = false