pub struct AuditQueryFilter {
pub category_mask: u16,
pub min_severity: Option<AuditSeverity>,
pub pid: u64,
pub time_min: u64,
pub time_max: u64,
pub failures_only: bool,
}Expand description
Multi-dimensional filter for querying audit events.
Fields§
§category_mask: u16Bitmask of enabled categories (0 = match all)
min_severity: Option<AuditSeverity>Minimum severity to include (None = all)
pid: u64Filter by PID (0 = match all)
time_min: u64Start of time range (0 = no lower bound)
time_max: u64End of time range (0 = no upper bound)
failures_only: boolOnly include failures (false = include all)
Implementations§
Source§impl AuditQueryFilter
impl AuditQueryFilter
Sourcepub fn matches(&self, entry: &AuditEntry) -> bool
pub fn matches(&self, entry: &AuditEntry) -> bool
Check if a given entry passes this filter.
Trait Implementations§
Source§impl Clone for AuditQueryFilter
impl Clone for AuditQueryFilter
Source§fn clone(&self) -> AuditQueryFilter
fn clone(&self) -> AuditQueryFilter
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 AuditQueryFilter
impl Debug for AuditQueryFilter
impl Copy for AuditQueryFilter
Auto Trait Implementations§
impl Freeze for AuditQueryFilter
impl RefUnwindSafe for AuditQueryFilter
impl Send for AuditQueryFilter
impl Sync for AuditQueryFilter
impl Unpin for AuditQueryFilter
impl UnwindSafe for AuditQueryFilter
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)