Skip to main content

HealthCheck

Trait HealthCheck 

Source
pub trait HealthCheck: Send + Sync {
    // Required methods
    fn name(&self) -> &str;
    fn health_check(&self) -> impl Future<Output = Result<(), StdError>> + Send;
}

Required Methods§

Source

fn name(&self) -> &str

Source

fn health_check(&self) -> impl Future<Output = Result<(), StdError>> + Send

Dyn Compatibility§

This trait is not dyn compatible.

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

Implementors§