#[non_exhaustive]pub enum AuditSeverity {
Info = 1,
Warning = 2,
Error = 3,
Critical = 4,
}Expand description
Severity levels for audit events.
Stability: AuditSeverity is #[non_exhaustive] so the v1.x
SemVer contract can add new severity tiers in MINOR releases
without breaking user code. Callers must use a wildcard arm when
pattern-matching.
Variants (Non-exhaustive)§
This enum is marked as non-exhaustive
Non-exhaustive enums could have additional variants added in future. Therefore, when matching against variants of non-exhaustive enums, an extra wildcard arm must be added to account for any future variants.
Info = 1
Informational events (normal operations)
Warning = 2
Warning events (potential issues)
Error = 3
Error events (failures)
Critical = 4
Critical events (security concerns)
Trait Implementations§
Source§impl Clone for AuditSeverity
impl Clone for AuditSeverity
Source§fn clone(&self) -> AuditSeverity
fn clone(&self) -> AuditSeverity
Returns a duplicate of the value. Read more
1.0.0 (const: unstable) · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source. Read moreSource§impl Debug for AuditSeverity
impl Debug for AuditSeverity
Source§impl PartialEq for AuditSeverity
impl PartialEq for AuditSeverity
Source§fn eq(&self, other: &AuditSeverity) -> bool
fn eq(&self, other: &AuditSeverity) -> bool
Tests for
self and other values to be equal, and is used by ==.Source§impl PartialOrd for AuditSeverity
impl PartialOrd for AuditSeverity
impl StructuralPartialEq for AuditSeverity
Auto Trait Implementations§
impl Freeze for AuditSeverity
impl RefUnwindSafe for AuditSeverity
impl Send for AuditSeverity
impl Sync for AuditSeverity
impl Unpin for AuditSeverity
impl UnsafeUnpin for AuditSeverity
impl UnwindSafe for AuditSeverity
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