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§
- Config
Diagnostics - Configuration diagnostics
- Config
Issue - Configuration issue
- Diagnostic
Result - Result of a diagnostic test
- Network
Diagnostics - Network diagnostics tool
- Performance
Metrics - Network performance metrics
- Troubleshooting
Guide - Common network issues and their solutions
Enums§
- Diagnostic
Test - Type of diagnostic test