pub struct ProductionMonitor { /* private fields */ }Expand description
Production monitoring system for EtherNet/IP operations
Implementations§
Source§impl ProductionMonitor
impl ProductionMonitor
pub fn new() -> Self
Sourcepub async fn record_read_success(&self, latency: Duration)
pub async fn record_read_success(&self, latency: Duration)
Record a successful read operation
Sourcepub async fn record_read_failure(&self, error_type: &str)
pub async fn record_read_failure(&self, error_type: &str)
Record a failed read operation
Sourcepub async fn record_write_success(&self, latency: Duration)
pub async fn record_write_success(&self, latency: Duration)
Record a successful write operation
Sourcepub async fn record_write_failure(&self, error_type: &str)
pub async fn record_write_failure(&self, error_type: &str)
Record a failed write operation
Sourcepub async fn record_connection(&self, success: bool)
pub async fn record_connection(&self, success: bool)
Record a connection event
Sourcepub async fn record_disconnection(&self)
pub async fn record_disconnection(&self)
Record a disconnection event
Sourcepub async fn get_metrics(&self) -> MonitoringMetrics
pub async fn get_metrics(&self) -> MonitoringMetrics
Get current metrics
Sourcepub async fn start_monitoring(&self)
pub async fn start_monitoring(&self)
Start monitoring background tasks
Sourcepub async fn reset_consecutive_failures(&self)
pub async fn reset_consecutive_failures(&self)
Reset consecutive failures (call after successful recovery)
Trait Implementations§
Source§impl Clone for ProductionMonitor
impl Clone for ProductionMonitor
Auto Trait Implementations§
impl !Freeze for ProductionMonitor
impl !RefUnwindSafe for ProductionMonitor
impl Send for ProductionMonitor
impl Sync for ProductionMonitor
impl Unpin for ProductionMonitor
impl !UnwindSafe for ProductionMonitor
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