Skip to main content

EnabledPredicate

Trait EnabledPredicate 

Source
pub trait EnabledPredicate:
    Send
    + Sync
    + 'static {
    // Required methods
    fn max_level_hint(&self) -> Option<LevelFilter>;
    fn callsite_enabled(&self, metadata: &'static Metadata<'static>) -> Interest;
    fn enabled(&self, metadata: &Metadata<'_>) -> bool;
    fn new_span_enabled(&self, span: &Attributes<'_>) -> bool;
}

Required Methods§

Source

fn max_level_hint(&self) -> Option<LevelFilter>

Source

fn callsite_enabled(&self, metadata: &'static Metadata<'static>) -> Interest

Source

fn enabled(&self, metadata: &Metadata<'_>) -> bool

Source

fn new_span_enabled(&self, span: &Attributes<'_>) -> bool

Dyn Compatibility§

This trait is dyn compatible.

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

Implementors§