Skip to main content

HealthServerHandler

Trait HealthServerHandler 

Source
pub trait HealthServerHandler<___T = DriverChannel>
where ___T: Transport,
{ // Required method fn health_check( &mut self, request: Request<HealthCheck, ___T>, responder: Responder<HealthCheck, ___T>, ) -> impl Future<Output = ()> + Send; // Provided method fn on_unknown_interaction( &mut self, ordinal: u64, ) -> impl Future<Output = ()> + Send { ... } }
Expand description

A server handler for the Health protocol.

See Health for more details.

Required Methods§

Source

fn health_check( &mut self, request: Request<HealthCheck, ___T>, responder: Responder<HealthCheck, ___T>, ) -> impl Future<Output = ()> + Send

Requests the driver to perform a self-diagnostic check.

The Driver Host never issues HealthCheck between Driver.Suspend and the completion of Driver.Resume, answering HealthCheckError.INVALID_STATE itself while the driver is suspended or transitioning power states.

Provided Methods§

Source

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

Dyn Compatibility§

This trait is not dyn compatible.

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

Implementors§