pub trait HealthCheck {
// Required method
fn health_request(&self) -> HealthCheckResponse;
}Expand description
Trait describing types/entities that can be health-checked
Required Methods§
fn health_request(&self) -> HealthCheckResponse
Dyn Compatibility§
This trait is dyn compatible.
In older versions of Rust, dyn compatibility was called "object safety".