pub trait HealthMonitorBuilderTrait<State>: Send {
type HealthMonitor: Component;
// Required method
fn build_health_monitor(
self,
ctx: &BuilderContext<State>,
) -> impl Future<Output = Result<Self::HealthMonitor>> + Send;
}Expand description
Builder for health monitoring components
Required Associated Types§
Sourcetype HealthMonitor: Component
type HealthMonitor: Component
The health monitor component type
Required Methods§
Sourcefn build_health_monitor(
self,
ctx: &BuilderContext<State>,
) -> impl Future<Output = Result<Self::HealthMonitor>> + Send
fn build_health_monitor( self, ctx: &BuilderContext<State>, ) -> impl Future<Output = Result<Self::HealthMonitor>> + Send
Build the health monitor component
Dyn Compatibility§
This trait is not dyn compatible.
In older versions of Rust, dyn compatibility was called "object safety", so this trait is not object safe.