Skip to main content

DeviceServerHandler

Trait DeviceServerHandler 

Source
pub trait DeviceServerHandler<___T: Transport = DriverChannel> {
    // Required methods
    fn get_hardware_id(
        &mut self,
        responder: Responder<GetHardwareId, ___T>,
    ) -> impl Future<Output = ()> + Send;
    fn get_event(
        &mut self,
        responder: Responder<GetEvent, ___T>,
    ) -> impl Future<Output = ()> + Send;
}
Expand description

A server handler for the Device protocol.

See Device for more details.

Required Methods§

Source

fn get_hardware_id( &mut self, responder: Responder<GetHardwareId, ___T>, ) -> impl Future<Output = ()> + Send

Returns a unique identifier for this device.

Source

fn get_event( &mut self, responder: Responder<GetEvent, ___T>, ) -> impl Future<Output = ()> + Send

Returns a zircon event object handle!

Dyn Compatibility§

This trait is not dyn compatible.

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

Implementors§