pub struct Diagnostics { /* private fields */ }Expand description
Network diagnostics runner.
Provides methods to scan and analyze network configuration.
Implementations§
Source§impl Diagnostics
impl Diagnostics
Sourcepub fn new(conn: Connection<Route>) -> Self
pub fn new(conn: Connection<Route>) -> Self
Create a new diagnostics runner with default configuration.
Sourcepub fn with_config(conn: Connection<Route>, config: DiagnosticsConfig) -> Self
pub fn with_config(conn: Connection<Route>, config: DiagnosticsConfig) -> Self
Create a new diagnostics runner with custom configuration.
Sourcepub fn config(&self) -> &DiagnosticsConfig
pub fn config(&self) -> &DiagnosticsConfig
Get a reference to the configuration.
Sourcepub fn config_mut(&mut self) -> &mut DiagnosticsConfig
pub fn config_mut(&mut self) -> &mut DiagnosticsConfig
Get a mutable reference to the configuration.
Sourcepub async fn scan(&self) -> Result<DiagnosticReport>
pub async fn scan(&self) -> Result<DiagnosticReport>
Run a full diagnostic scan of all interfaces and routes.
Sourcepub async fn scan_interface(&self, dev: &str) -> Result<InterfaceDiag>
pub async fn scan_interface(&self, dev: &str) -> Result<InterfaceDiag>
Diagnose a specific interface.
Sourcepub async fn check_connectivity(
&self,
dest: IpAddr,
) -> Result<ConnectivityReport>
pub async fn check_connectivity( &self, dest: IpAddr, ) -> Result<ConnectivityReport>
Check connectivity to a destination IP address.
Sourcepub async fn find_bottleneck(&self) -> Result<Option<Bottleneck>>
pub async fn find_bottleneck(&self) -> Result<Option<Bottleneck>>
Find the most significant bottleneck in the system.
Sourcepub async fn watch(&self) -> Result<IssueStream>
pub async fn watch(&self) -> Result<IssueStream>
Watch for issues in real-time.
Returns a stream of issues detected from network events.
Auto Trait Implementations§
impl !Freeze for Diagnostics
impl !RefUnwindSafe for Diagnostics
impl Send for Diagnostics
impl Sync for Diagnostics
impl Unpin for Diagnostics
impl !UnwindSafe for Diagnostics
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