pub struct MonitoringSystem { /* private fields */ }Expand description
Central monitoring system for NAT traversal operations
Implementations§
Source§impl MonitoringSystem
impl MonitoringSystem
Sourcepub async fn new(config: MonitoringConfig) -> Result<Self, MonitoringError>
pub async fn new(config: MonitoringConfig) -> Result<Self, MonitoringError>
Create new monitoring system
Sourcepub async fn start(&self) -> Result<(), MonitoringError>
pub async fn start(&self) -> Result<(), MonitoringError>
Start monitoring system
Sourcepub async fn stop(&self) -> Result<(), MonitoringError>
pub async fn stop(&self) -> Result<(), MonitoringError>
Stop monitoring system
Sourcepub async fn record_nat_attempt(
&self,
attempt: NatTraversalAttempt,
) -> Result<(), MonitoringError>
pub async fn record_nat_attempt( &self, attempt: NatTraversalAttempt, ) -> Result<(), MonitoringError>
Record NAT traversal attempt
Sourcepub async fn record_nat_result(
&self,
result: NatTraversalResult,
) -> Result<(), MonitoringError>
pub async fn record_nat_result( &self, result: NatTraversalResult, ) -> Result<(), MonitoringError>
Record NAT traversal result
Sourcepub async fn get_status(&self) -> MonitoringSystemStatus
pub async fn get_status(&self) -> MonitoringSystemStatus
Get system status
Sourcepub async fn trigger_diagnostic(
&self,
diagnostic_type: DiagnosticType,
) -> Result<DiagnosticReport, MonitoringError>
pub async fn trigger_diagnostic( &self, diagnostic_type: DiagnosticType, ) -> Result<DiagnosticReport, MonitoringError>
Trigger manual diagnostic
Sourcepub async fn health_check(&self) -> HealthCheckResult
pub async fn health_check(&self) -> HealthCheckResult
Get health check
Auto Trait Implementations§
impl Freeze for MonitoringSystem
impl !RefUnwindSafe for MonitoringSystem
impl Send for MonitoringSystem
impl Sync for MonitoringSystem
impl Unpin for MonitoringSystem
impl !UnwindSafe for MonitoringSystem
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