pub trait HealthLocalServerHandler<___T: Transport = DriverChannel> {
// 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§
Sourcefn health_check(
&mut self,
request: Request<HealthCheck, ___T>,
responder: Responder<HealthCheck, ___T>,
) -> impl Future<Output = ()>
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§
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".