Struct veilid_core::VeilidLayerFilter
source · pub struct VeilidLayerFilter { /* private fields */ }
Implementations§
source§impl VeilidLayerFilter
impl VeilidLayerFilter
pub fn new( max_level: VeilidConfigLogLevel, ignore_log_targets: &[String] ) -> VeilidLayerFilter
pub fn max_level(&self) -> VeilidConfigLogLevel
pub fn ignore_list(&self) -> Vec<String>
pub fn set_max_level(&self, level: VeilidConfigLogLevel)
pub fn set_ignore_list(&self, ignore_list: Option<Vec<String>>)
pub fn apply_ignore_change( ignore_list: &[String], target_change: String ) -> Vec<String>
pub fn apply_ignore_change_list( ignore_list: &mut Vec<String>, target_change: &[String] )
Trait Implementations§
source§impl Clone for VeilidLayerFilter
impl Clone for VeilidLayerFilter
source§fn clone(&self) -> VeilidLayerFilter
fn clone(&self) -> VeilidLayerFilter
Returns a copy 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 moresource§impl<S: Subscriber> Filter<S> for VeilidLayerFilter
impl<S: Subscriber> Filter<S> for VeilidLayerFilter
source§fn enabled(&self, metadata: &Metadata<'_>, _: &Context<'_, S>) -> bool
fn enabled(&self, metadata: &Metadata<'_>, _: &Context<'_, S>) -> bool
Returns
true
if this layer is interested in a span or event with the
given Metadata
in the current Context
, similarly to
Subscriber::enabled
. Read moresource§fn callsite_enabled(&self, metadata: &'static Metadata<'static>) -> Interest
fn callsite_enabled(&self, metadata: &'static Metadata<'static>) -> Interest
source§fn max_level_hint(&self) -> Option<LevelFilter>
fn max_level_hint(&self) -> Option<LevelFilter>
source§fn event_enabled(&self, event: &Event<'_>, cx: &Context<'_, S>) -> bool
fn event_enabled(&self, event: &Event<'_>, cx: &Context<'_, S>) -> bool
Called before the filtered [
Layer]'s [
on_event], to determine if
on_event` should be called. Read moresource§fn on_new_span(&self, attrs: &Attributes<'_>, id: &Id, ctx: Context<'_, S>)
fn on_new_span(&self, attrs: &Attributes<'_>, id: &Id, ctx: Context<'_, S>)
source§fn on_enter(&self, id: &Id, ctx: Context<'_, S>)
fn on_enter(&self, id: &Id, ctx: Context<'_, S>)
Notifies this filter that a span with the given ID was entered. Read more
Auto Trait Implementations§
impl Freeze for VeilidLayerFilter
impl !RefUnwindSafe for VeilidLayerFilter
impl Send for VeilidLayerFilter
impl Sync for VeilidLayerFilter
impl Unpin for VeilidLayerFilter
impl !UnwindSafe for VeilidLayerFilter
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