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;
}