Trait DeviceServerHandler

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

Returns a unique identifier for this device.

Source

fn get_event( &mut self, sender: &ServerSender<Device, ___T>, responder: Responder<GetEvent>, ) -> 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", so this trait is not object safe.

Implementors§