pub struct SharedFilter { /* private fields */ }Expand description
Shared filter state that can be updated by the host.
This is wrapped in Arc and shared between RapaceTracingLayer and TracingConfigImpl.
Implementations§
Sourcepub fn set_filter(&self, filter_str: &str)
pub fn set_filter(&self, filter_str: &str)
Update the filter from a filter string (RUST_LOG format).
Sourcepub fn max_level_enabled(&self, level: LevelFilter) -> bool
pub fn max_level_enabled(&self, level: LevelFilter) -> bool
Check if a given level is enabled (max level check).
This is a quick check based on the filter’s max level hint.
Target-specific filtering happens through the Layer’s enabled method.
Sourcepub fn max_level_hint(&self) -> Option<LevelFilter>
pub fn max_level_hint(&self) -> Option<LevelFilter>
Get the current max level hint.
Trait Implementations§
Source§fn clone(&self) -> SharedFilter
fn clone(&self) -> SharedFilter
Returns a duplicate of the value. Read more
1.0.0 · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source. Read moreAuto Trait Implementations§
Blanket Implementations§
Source§impl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
Source§fn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more