pub struct AuditActiveFilter {
pub category_mask: u16,
pub min_severity: AuditSeverity,
}Expand description
Active filter controlling which events are accepted into the log.
Fields§
§category_mask: u16Bitmask of enabled categories (all bits set = log everything)
min_severity: AuditSeverityMinimum severity to log
Implementations§
Source§impl AuditActiveFilter
impl AuditActiveFilter
Sourcepub const fn accept_all() -> Self
pub const fn accept_all() -> Self
Create a filter that accepts all events.
Sourcepub fn should_log(
&self,
category: AuditCategory,
severity: AuditSeverity,
) -> bool
pub fn should_log( &self, category: AuditCategory, severity: AuditSeverity, ) -> bool
Check if an event with the given category and severity should be logged.
Trait Implementations§
Source§impl Clone for AuditActiveFilter
impl Clone for AuditActiveFilter
Source§fn clone(&self) -> AuditActiveFilter
fn clone(&self) -> AuditActiveFilter
Returns a duplicate of the value. Read more
1.0.0§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source. Read moreSource§impl Debug for AuditActiveFilter
impl Debug for AuditActiveFilter
impl Copy for AuditActiveFilter
Auto Trait Implementations§
impl Freeze for AuditActiveFilter
impl RefUnwindSafe for AuditActiveFilter
impl Send for AuditActiveFilter
impl Sync for AuditActiveFilter
impl Unpin for AuditActiveFilter
impl UnwindSafe for AuditActiveFilter
Blanket Implementations§
§impl<T> Any for Twhere
T: 'static + ?Sized,
impl<T> Any for Twhere
T: 'static + ?Sized,
§impl<T> Borrow<T> for Twhere
T: ?Sized,
impl<T> Borrow<T> for Twhere
T: ?Sized,
§impl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
§fn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more
§impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
§unsafe fn clone_to_uninit(&self, dest: *mut u8)
unsafe fn clone_to_uninit(&self, dest: *mut u8)
🔬This is a nightly-only experimental API. (
clone_to_uninit)