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§
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
Dyn Compatibility§
This trait is dyn compatible.
In older versions of Rust, dyn compatibility was called "object safety".