pub struct DiagnosticEngine { /* private fields */ }Expand description
Diagnostic engine for automated failure analysis
Implementations§
Source§impl DiagnosticEngine
impl DiagnosticEngine
Sourcepub async fn new(config: DiagnosticsConfig) -> Result<Self, MonitoringError>
pub async fn new(config: DiagnosticsConfig) -> Result<Self, MonitoringError>
Create new diagnostic engine
Sourcepub async fn start(&self) -> Result<(), MonitoringError>
pub async fn start(&self) -> Result<(), MonitoringError>
Start diagnostic engine
Sourcepub async fn stop(&self) -> Result<(), MonitoringError>
pub async fn stop(&self) -> Result<(), MonitoringError>
Stop diagnostic engine
Sourcepub async fn analyze_failure(
&self,
result: &NatTraversalResult,
) -> Result<DiagnosticReport, MonitoringError>
pub async fn analyze_failure( &self, result: &NatTraversalResult, ) -> Result<DiagnosticReport, MonitoringError>
Analyze NAT traversal failure
Sourcepub async fn run_diagnostic(
&self,
diagnostic_type: DiagnosticType,
) -> Result<DiagnosticReport, MonitoringError>
pub async fn run_diagnostic( &self, diagnostic_type: DiagnosticType, ) -> Result<DiagnosticReport, MonitoringError>
Run specific diagnostic
Sourcepub async fn get_status(&self) -> String
pub async fn get_status(&self) -> String
Get diagnostic status
Sourcepub async fn get_diagnostic_statistics(
&self,
period: Duration,
) -> DiagnosticStatistics
pub async fn get_diagnostic_statistics( &self, period: Duration, ) -> DiagnosticStatistics
Get diagnostic statistics
Auto Trait Implementations§
impl Freeze for DiagnosticEngine
impl !RefUnwindSafe for DiagnosticEngine
impl Send for DiagnosticEngine
impl Sync for DiagnosticEngine
impl Unpin for DiagnosticEngine
impl !UnwindSafe for DiagnosticEngine
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