pub trait NetworkValidator: Send + Sync {
// Required methods
fn check_connectivity<'life0, 'life1, 'life2, 'async_trait>(
&'life0 self,
service_name: &'life1 str,
options: &'life2 NetworkCheckOptions,
) -> Pin<Box<dyn Future<Output = Result<ConnectivityStatus>> + Send + 'async_trait>>
where Self: 'async_trait,
'life0: 'async_trait,
'life1: 'async_trait,
'life2: 'async_trait;
fn verify_service_health<'life0, 'life1, 'life2, 'async_trait>(
&'life0 self,
service_name: &'life1 str,
options: &'life2 NetworkCheckOptions,
) -> Pin<Box<dyn Future<Output = Result<HealthStatus>> + Send + 'async_trait>>
where Self: 'async_trait,
'life0: 'async_trait,
'life1: 'async_trait,
'life2: 'async_trait;
fn test_latency<'life0, 'life1, 'life2, 'async_trait>(
&'life0 self,
service_name: &'life1 str,
options: &'life2 NetworkCheckOptions,
) -> Pin<Box<dyn Future<Output = Result<LatencyInfo>> + Send + 'async_trait>>
where Self: 'async_trait,
'life0: 'async_trait,
'life1: 'async_trait,
'life2: 'async_trait;
fn batch_check<'life0, 'life1, 'life2, 'async_trait>(
&'life0 self,
service_names: &'life1 [String],
options: &'life2 NetworkCheckOptions,
) -> Pin<Box<dyn Future<Output = Result<Vec<NetworkCheckResult>>> + Send + 'async_trait>>
where Self: 'async_trait,
'life0: 'async_trait,
'life1: 'async_trait,
'life2: 'async_trait;
}Expand description
Network connectivity validation
Required Methods§
Sourcefn check_connectivity<'life0, 'life1, 'life2, 'async_trait>(
&'life0 self,
service_name: &'life1 str,
options: &'life2 NetworkCheckOptions,
) -> Pin<Box<dyn Future<Output = Result<ConnectivityStatus>> + Send + 'async_trait>>where
Self: 'async_trait,
'life0: 'async_trait,
'life1: 'async_trait,
'life2: 'async_trait,
fn check_connectivity<'life0, 'life1, 'life2, 'async_trait>(
&'life0 self,
service_name: &'life1 str,
options: &'life2 NetworkCheckOptions,
) -> Pin<Box<dyn Future<Output = Result<ConnectivityStatus>> + Send + 'async_trait>>where
Self: 'async_trait,
'life0: 'async_trait,
'life1: 'async_trait,
'life2: 'async_trait,
Check connectivity
Sourcefn verify_service_health<'life0, 'life1, 'life2, 'async_trait>(
&'life0 self,
service_name: &'life1 str,
options: &'life2 NetworkCheckOptions,
) -> Pin<Box<dyn Future<Output = Result<HealthStatus>> + Send + 'async_trait>>where
Self: 'async_trait,
'life0: 'async_trait,
'life1: 'async_trait,
'life2: 'async_trait,
fn verify_service_health<'life0, 'life1, 'life2, 'async_trait>(
&'life0 self,
service_name: &'life1 str,
options: &'life2 NetworkCheckOptions,
) -> Pin<Box<dyn Future<Output = Result<HealthStatus>> + Send + 'async_trait>>where
Self: 'async_trait,
'life0: 'async_trait,
'life1: 'async_trait,
'life2: 'async_trait,
Verify service health status
Sourcefn test_latency<'life0, 'life1, 'life2, 'async_trait>(
&'life0 self,
service_name: &'life1 str,
options: &'life2 NetworkCheckOptions,
) -> Pin<Box<dyn Future<Output = Result<LatencyInfo>> + Send + 'async_trait>>where
Self: 'async_trait,
'life0: 'async_trait,
'life1: 'async_trait,
'life2: 'async_trait,
fn test_latency<'life0, 'life1, 'life2, 'async_trait>(
&'life0 self,
service_name: &'life1 str,
options: &'life2 NetworkCheckOptions,
) -> Pin<Box<dyn Future<Output = Result<LatencyInfo>> + Send + 'async_trait>>where
Self: 'async_trait,
'life0: 'async_trait,
'life1: 'async_trait,
'life2: 'async_trait,
Test latency
Sourcefn batch_check<'life0, 'life1, 'life2, 'async_trait>(
&'life0 self,
service_names: &'life1 [String],
options: &'life2 NetworkCheckOptions,
) -> Pin<Box<dyn Future<Output = Result<Vec<NetworkCheckResult>>> + Send + 'async_trait>>where
Self: 'async_trait,
'life0: 'async_trait,
'life1: 'async_trait,
'life2: 'async_trait,
fn batch_check<'life0, 'life1, 'life2, 'async_trait>(
&'life0 self,
service_names: &'life1 [String],
options: &'life2 NetworkCheckOptions,
) -> Pin<Box<dyn Future<Output = Result<Vec<NetworkCheckResult>>> + Send + 'async_trait>>where
Self: 'async_trait,
'life0: 'async_trait,
'life1: 'async_trait,
'life2: 'async_trait,
Batch check
Dyn Compatibility§
This trait is dyn compatible.
In older versions of Rust, dyn compatibility was called "object safety".