pub struct SecurityMonitor { /* private fields */ }Expand description
Security monitor that tracks and analyzes security events
Implementations§
Source§impl SecurityMonitor
impl SecurityMonitor
Sourcepub fn set_high_performance_mode(&mut self, enabled: bool)
pub fn set_high_performance_mode(&mut self, enabled: bool)
Enable high performance mode for heavy traffic scenarios
Sourcepub fn record_event(&mut self, event: SecurityEvent)
pub fn record_event(&mut self, event: SecurityEvent)
Record a security event
Sourcepub fn check_rate_limit(
&mut self,
source: &str,
max_per_minute: u32,
) -> Result<()>
pub fn check_rate_limit( &mut self, source: &str, max_per_minute: u32, ) -> Result<()>
Check if rate limiting should be applied
Sourcepub fn get_statistics(&self) -> SecurityStatistics
pub fn get_statistics(&self) -> SecurityStatistics
Get security event statistics (optimized for high performance mode)
Sourcepub fn check_anomalies(&self) -> Vec<SecurityAnomaly>
pub fn check_anomalies(&self) -> Vec<SecurityAnomaly>
Check for security anomalies (optimized for high performance mode)
Trait Implementations§
Auto Trait Implementations§
impl Freeze for SecurityMonitor
impl RefUnwindSafe for SecurityMonitor
impl Send for SecurityMonitor
impl Sync for SecurityMonitor
impl Unpin for SecurityMonitor
impl UnsafeUnpin for SecurityMonitor
impl UnwindSafe for SecurityMonitor
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> 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