Struct logid::logging::filter::FilterConfig
source · pub struct FilterConfig { /* private fields */ }
Implementations§
source§impl FilterConfig
impl FilterConfig
pub fn new(filter: &str) -> FilterConfig
pub fn allow_addon(&self, id: LogId, origin: &Origin, addon: &AddonKind) -> bool
pub fn show_origin_info(&self, id: LogId, origin: &Origin) -> bool
pub fn show_id(&self, id: LogId, origin: &Origin) -> bool
pub fn builder(log_level: LogLevel) -> FilterConfigBuilder
Trait Implementations§
source§impl Debug for FilterConfig
impl Debug for FilterConfig
source§impl Default for FilterConfig
impl Default for FilterConfig
source§fn default() -> FilterConfig
fn default() -> FilterConfig
Returns the “default value” for a type. Read more
source§impl Filter<LogId, LogMsg> for FilterConfig
impl Filter<LogId, LogMsg> for FilterConfig
source§fn allow_entry(&self, entry: &impl EventEntry<LogId, LogMsg>) -> bool
fn allow_entry(&self, entry: &impl EventEntry<LogId, LogMsg>) -> bool
Return
true
if the entry is allowed to be captured.source§impl<I> From<(LogLevel, I)> for FilterConfigwhere
I: IntoIterator<Item = AddonFilter>,
impl<I> From<(LogLevel, I)> for FilterConfigwhere I: IntoIterator<Item = AddonFilter>,
source§fn from(_: (LogLevel, I)) -> FilterConfig
fn from(_: (LogLevel, I)) -> FilterConfig
Converts to this type from the input type.
Auto Trait Implementations§
impl RefUnwindSafe for FilterConfig
impl Send for FilterConfig
impl Sync for FilterConfig
impl Unpin for FilterConfig
impl UnwindSafe for FilterConfig
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