Skip to main content

HealthLocalClientHandler

Trait HealthLocalClientHandler 

Source
pub trait HealthLocalClientHandler<___T: Transport = DriverChannel> {
    // Required method
    fn on_health_alert(
        &mut self,
        request: Request<OnHealthAlert, ___T>,
    ) -> impl Future<Output = ()>;

    // Provided method
    fn on_unknown_interaction(
        &mut self,
        ordinal: u64,
    ) -> impl Future<Output = ()> { ... }
}
Expand description

A client handler for the Health protocol.

See Health for more details.

Required Methods§

Source

fn on_health_alert( &mut self, request: Request<OnHealthAlert, ___T>, ) -> impl Future<Output = ()>

Proactively emitted by the driver when it detects an asynchronous self-fault or suspects an upstream/downstream neighbor.

Provided Methods§

Source

fn on_unknown_interaction(&mut self, ordinal: u64) -> impl Future<Output = ()>

Dyn Compatibility§

This trait is not dyn compatible.

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

Implementations on Foreign Types§

Source§

impl<___H, ___T> HealthLocalClientHandler<___T> for Local<___H>
where ___H: HealthClientHandler<___T>, ___T: Transport,

Source§

async fn on_health_alert(&mut self, request: Request<OnHealthAlert, ___T>)

Source§

async fn on_unknown_interaction(&mut self, ordinal: u64)

Implementors§