pub struct MetricsCollector {}Expand description
Metrics collector
Implementations§
Source§impl MetricsCollector
impl MetricsCollector
Sourcepub fn update_session_count(&self, total: usize, active: usize)
pub fn update_session_count(&self, total: usize, active: usize)
Update session count
Sourcepub fn record_packet_received(&self, bytes: usize)
pub fn record_packet_received(&self, bytes: usize)
Record packet received
Sourcepub fn record_packet_sent(&self, bytes: usize)
pub fn record_packet_sent(&self, bytes: usize)
Record packet sent
Sourcepub fn record_processing_time(&self, _seconds: f64)
pub fn record_processing_time(&self, _seconds: f64)
Record packet processing time
Sourcepub fn record_tag_validation_time(&self, _seconds: f64)
pub fn record_tag_validation_time(&self, _seconds: f64)
Record tag validation time
Sourcepub fn record_mask_rotation(&self)
pub fn record_mask_rotation(&self)
Record mask rotation
Sourcepub fn record_key_rotation(&self)
pub fn record_key_rotation(&self)
Record key rotation
Sourcepub fn record_neural_check(&self, _failed: bool)
pub fn record_neural_check(&self, _failed: bool)
Record neural check
Sourcepub fn record_dpi_attack(&self)
pub fn record_dpi_attack(&self)
Record DPI attack detection
Trait Implementations§
Auto Trait Implementations§
impl Freeze for MetricsCollector
impl RefUnwindSafe for MetricsCollector
impl Send for MetricsCollector
impl Sync for MetricsCollector
impl Unpin for MetricsCollector
impl UnsafeUnpin for MetricsCollector
impl UnwindSafe for MetricsCollector
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