Skip to main content

NetworkMonitor

Trait NetworkMonitor 

Source
pub trait NetworkMonitor: Send + Sync {
    // Required methods
    fn status(&self) -> NetworkStatus;
    fn is_alive(&self) -> bool;
    fn reconnect(&self);
}
Expand description

Reports the current network status.

Required Methods§

Dyn Compatibility§

This trait is dyn compatible.

In older versions of Rust, dyn compatibility was called "object safety".

Implementors§