Skip to main content

HealthCheck

Trait HealthCheck 

Source
pub trait HealthCheck:
    Send
    + Sync
    + 'static {
    // Required method
    fn check(&self) -> Pin<Box<dyn Future<Output = HealthStatus> + Send + '_>>;
}
Expand description

One named sub-system health probe.

Required Methods§

Source

fn check(&self) -> Pin<Box<dyn Future<Output = HealthStatus> + Send + '_>>

Dyn Compatibility§

This trait is dyn compatible.

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

Implementors§