Skip to main content

InputReportsReaderV2ClientHandler

Trait InputReportsReaderV2ClientHandler 

Source
pub trait InputReportsReaderV2ClientHandler<___T: Transport = Channel> {
    // Required method
    fn on_input_reports(
        &mut self,
        request: Request<OnInputReports, ___T>,
    ) -> impl Future<Output = ()> + Send;

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

A client handler for the InputReportsReaderV2 protocol.

See InputReportsReaderV2 for more details.

Required Methods§

Source

fn on_input_reports( &mut self, request: Request<OnInputReports, ___T>, ) -> impl Future<Output = ()> + Send

The device pushes events to the client. The client does not need to acknowledge every report; it can allow multiple reports to be in flight up to max_unacknowledged_reports.

Streaming begins automatically on connection.

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".

Implementations on Foreign Types§

Source§

impl<___T> InputReportsReaderV2ClientHandler<___T> for IgnoreEvents
where ___T: Transport,

Source§

async fn on_input_reports(&mut self, _: Request<OnInputReports, ___T>)

Source§

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

Implementors§