Module diagnostics

Module diagnostics 

Source
Expand description

Network Diagnostics and Troubleshooting Utilities

This module provides diagnostic tools to help identify and troubleshoot network issues.

§Features

  • Connectivity Tests: Test connectivity to bootstrap nodes and peers
  • Performance Diagnostics: Measure network performance metrics
  • Configuration Validation: Validate network configuration
  • Health Checks: Comprehensive health checks for all components
  • Troubleshooting Guides: Automated diagnosis of common issues

§Example

use ipfrs_network::diagnostics::{NetworkDiagnostics, DiagnosticTest};

let mut diagnostics = NetworkDiagnostics::new();

// Run all diagnostic tests
let results = diagnostics.run_all_tests();
for result in results {
    println!("{}: {}", result.test_name, if result.passed { "PASS" } else { "FAIL" });
    if !result.passed {
        println!("  Issue: {}", result.message);
        if let Some(fix) = result.suggested_fix {
            println!("  Fix: {}", fix);
        }
    }
}

Structs§

ConfigDiagnostics
Configuration diagnostics
ConfigIssue
Configuration issue
DiagnosticResult
Result of a diagnostic test
NetworkDiagnostics
Network diagnostics tool
PerformanceMetrics
Network performance metrics
TroubleshootingGuide
Common network issues and their solutions

Enums§

DiagnosticTest
Type of diagnostic test