pub enum SecurityEvent {
InvalidInput {
input_type: String,
attempted_value: String,
source: String,
},
SuspiciousFileAccess {
path: String,
access_type: String,
},
RateLimitExceeded {
source: String,
attempt_count: u32,
},
ConfigTampering {
config_field: String,
old_value: String,
new_value: String,
},
ResourceExhaustion {
resource_type: String,
usage_amount: u64,
limit: u64,
},
}Expand description
Security event types that can be monitored
Variants§
InvalidInput
Invalid input attempt (injection, traversal, etc.)
SuspiciousFileAccess
Suspicious file access pattern
RateLimitExceeded
Rate limiting triggered
ConfigTampering
Configuration tampering detected
ResourceExhaustion
Resource exhaustion attempt
Trait Implementations§
Source§impl Clone for SecurityEvent
impl Clone for SecurityEvent
Source§fn clone(&self) -> SecurityEvent
fn clone(&self) -> SecurityEvent
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 SecurityEvent
impl Debug for SecurityEvent
Source§impl PartialEq for SecurityEvent
impl PartialEq for SecurityEvent
Source§fn eq(&self, other: &SecurityEvent) -> bool
fn eq(&self, other: &SecurityEvent) -> bool
Tests for
self and other values to be equal, and is used by ==.impl StructuralPartialEq for SecurityEvent
Auto Trait Implementations§
impl Freeze for SecurityEvent
impl RefUnwindSafe for SecurityEvent
impl Send for SecurityEvent
impl Sync for SecurityEvent
impl Unpin for SecurityEvent
impl UnsafeUnpin for SecurityEvent
impl UnwindSafe for SecurityEvent
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
Source§impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
Source§impl<T> IntoEither for T
impl<T> IntoEither for T
Source§fn into_either(self, into_left: bool) -> Either<Self, Self>
fn into_either(self, into_left: bool) -> Either<Self, Self>
Converts
self into a Left variant of Either<Self, Self>
if into_left is true.
Converts self into a Right variant of Either<Self, Self>
otherwise. Read moreSource§fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
Converts
self into a Left variant of Either<Self, Self>
if into_left(&self) returns true.
Converts self into a Right variant of Either<Self, Self>
otherwise. Read more