Skip to main content

ConnectivityProbe

Trait ConnectivityProbe 

Source
pub trait ConnectivityProbe: Send + Sync {
    // Required method
    fn check<'life0, 'async_trait>(
        &'life0 self,
    ) -> Pin<Box<dyn Future<Output = ConnectivityStatus> + Send + 'async_trait>>
       where Self: 'async_trait,
             'life0: 'async_trait;
}
Available on crate feature resilience only.
Expand description

Trait for checking network connectivity.

Required Methods§

Source

fn check<'life0, 'async_trait>( &'life0 self, ) -> Pin<Box<dyn Future<Output = ConnectivityStatus> + Send + 'async_trait>>
where Self: 'async_trait, 'life0: 'async_trait,

Check current connectivity status.

Implementors§