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§
Required Methods§
Sourcefn get_hardware_id(
&self,
) -> Result<ResponseFuture<'_, Self::Transport, GetHardwareId>, EncodeError>
fn get_hardware_id( &self, ) -> Result<ResponseFuture<'_, Self::Transport, GetHardwareId>, EncodeError>
Returns a unique identifier for this device.
Implementations on Foreign Types§
Source§impl<___T> DeviceClientSender for ClientSender<___T, Device>where
___T: Transport,
impl<___T> DeviceClientSender for ClientSender<___T, Device>where
___T: Transport,
Source§fn get_hardware_id(
&self,
) -> Result<ResponseFuture<'_, Self::Transport, GetHardwareId>, EncodeError>
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>
fn get_event( &self, ) -> Result<ResponseFuture<'_, Self::Transport, GetEvent>, EncodeError>
Returns a zircon event object handle!