Device

Trait Device 

Source
pub trait Device<EP>
where EP: ExecuteParams,
{ // Required methods fn on_execute<'life0, 'async_trait>( &'life0 mut self, command: DeviceCommand, params: EP, ) -> Pin<Box<dyn Future<Output = Result<(DeviceStatus, DeviceError)>> + Send + 'async_trait>> where Self: 'async_trait, 'life0: 'async_trait; fn state(&self) -> Value; }

Required Methods§

Source

fn on_execute<'life0, 'async_trait>( &'life0 mut self, command: DeviceCommand, params: EP, ) -> Pin<Box<dyn Future<Output = Result<(DeviceStatus, DeviceError)>> + Send + 'async_trait>>
where Self: 'async_trait, 'life0: 'async_trait,

Source

fn state(&self) -> Value

Implementors§