Trait DeviceClientSender

Source
pub trait DeviceClientSender {
    type Transport: Transport;

    // Required methods
    fn get_hardware_id(
        &self,
    ) -> Result<ResponseFuture<'_, Self::Transport, GetHardwareId>, EncodeError>;
    fn get_event(
        &self,
    ) -> Result<ResponseFuture<'_, Self::Transport, GetEvent>, EncodeError>;
}
Expand description

A helper trait for the Device client sender.

Required Associated Types§

Source

type Transport: Transport

Required Methods§

Source

fn get_hardware_id( &self, ) -> Result<ResponseFuture<'_, Self::Transport, GetHardwareId>, EncodeError>

Returns a unique identifier for this device.

Source

fn get_event( &self, ) -> Result<ResponseFuture<'_, Self::Transport, GetEvent>, EncodeError>

Returns a zircon event object handle!

Implementations on Foreign Types§

Source§

impl<___T> DeviceClientSender for ClientSender<___T, Device>
where ___T: Transport,

Source§

fn get_hardware_id( &self, ) -> Result<ResponseFuture<'_, Self::Transport, GetHardwareId>, EncodeError>

Returns a unique identifier for this device.

Source§

fn get_event( &self, ) -> Result<ResponseFuture<'_, Self::Transport, GetEvent>, EncodeError>

Returns a zircon event object handle!

Source§

type Transport = ___T

Implementors§