Skip to main content

HealthLocalServerHandler

Trait HealthLocalServerHandler 

Source
pub trait HealthLocalServerHandler<___T = DriverChannel>
where ___T: Transport,
{ // Required method fn health_check( &mut self, request: Request<HealthCheck, ___T>, responder: Responder<HealthCheck, ___T>, ) -> impl Future<Output = ()>; // Provided method fn on_unknown_interaction( &mut self, ordinal: u64, ) -> impl Future<Output = ()> { ... } }
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 = ()>

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 = ()>

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> HealthLocalServerHandler<___T> for Local<___H>
where ___H: HealthServerHandler<___T>, ___T: Transport,

Source§

async fn health_check( &mut self, request: Request<HealthCheck, ___T>, responder: Responder<HealthCheck, ___T>, )

Source§

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

Implementors§