Skip to main content

HealthService

Trait HealthService 

Source
pub trait HealthService: Send + Sync {
    // Required method
    fn status(&self) -> BoxFuture<'_, HealthStatus>;
}
Expand description

Liveness and readiness (S1D-003).

Required Methods§

Source

fn status(&self) -> BoxFuture<'_, HealthStatus>

Returns the current serving state.

Dyn Compatibility§

This trait is dyn compatible.

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

Implementors§