pub trait HealthService: Send + Sync {
// Required method
fn status(&self) -> BoxFuture<'_, HealthStatus>;
}Expand description
Liveness and readiness (S1D-003).
Required Methods§
Sourcefn status(&self) -> BoxFuture<'_, HealthStatus>
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".