Skip to main content

DeviceLocalServerHandler

Trait DeviceLocalServerHandler 

Source
pub trait DeviceLocalServerHandler<___T: Transport = DriverChannel> {
    // Required methods
    fn get_hardware_id(
        &mut self,
        responder: Responder<GetHardwareId, ___T>,
    ) -> impl Future<Output = ()>;
    fn get_event(
        &mut self,
        responder: Responder<GetEvent, ___T>,
    ) -> impl Future<Output = ()>;
}
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 = ()>

Returns a unique identifier for this device.

Source

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

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

Implementations on Foreign Types§

Source§

impl<___H, ___T> DeviceLocalServerHandler<___T> for Local<___H>
where ___H: DeviceServerHandler<___T>, ___T: Transport,

Source§

async fn get_hardware_id(&mut self, responder: Responder<GetHardwareId, ___T>)

Source§

async fn get_event(&mut self, responder: Responder<GetEvent, ___T>)

Implementors§