pub trait HealthCheck: Send + Sync {
// Required methods
fn name(&self) -> &str;
fn health_check(&self) -> impl Future<Output = Result<(), StdError>> + Send;
}Required Methods§
fn name(&self) -> &str
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".