pub struct AuditFilter {
pub enabled_types: u32,
}Expand description
Configurable audit event filter using a bitmask.
Each event type corresponds to a bit. If the bit is set, events of that type will be logged. If 0, all events are filtered out.
Fields§
§enabled_types: u32Bitmask of enabled event types
Implementations§
Source§impl AuditFilter
impl AuditFilter
Sourcepub fn is_enabled(&self, event_type: AuditEventType) -> bool
pub fn is_enabled(&self, event_type: AuditEventType) -> bool
Check if a given event type is enabled.
Sourcepub fn enable(&mut self, event_type: AuditEventType)
pub fn enable(&mut self, event_type: AuditEventType)
Enable an event type.
Sourcepub fn disable(&mut self, event_type: AuditEventType)
pub fn disable(&mut self, event_type: AuditEventType)
Disable an event type.
Trait Implementations§
Source§impl Clone for AuditFilter
impl Clone for AuditFilter
Source§fn clone(&self) -> AuditFilter
fn clone(&self) -> AuditFilter
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 AuditFilter
impl Debug for AuditFilter
impl Copy for AuditFilter
Auto Trait Implementations§
impl Freeze for AuditFilter
impl RefUnwindSafe for AuditFilter
impl Send for AuditFilter
impl Sync for AuditFilter
impl Unpin for AuditFilter
impl UnwindSafe for AuditFilter
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)