ApiClientExt

Trait ApiClientExt 

Source
pub trait ApiClientExt:
    Debug
    + Send
    + Sync {
    // Required methods
    fn set_device_info<'life0, 'async_trait>(
        &'life0 self,
        device_info_params: Value,
    ) -> Pin<Box<dyn Future<Output = Result<(), Error>> + Send + 'async_trait>>
       where Self: 'async_trait,
             'life0: 'async_trait;
    fn device_reboot<'life0, 'async_trait>(
        &'life0 self,
        delay_s: u16,
    ) -> Pin<Box<dyn Future<Output = Result<(), Error>> + Send + 'async_trait>>
       where Self: 'async_trait,
             'life0: 'async_trait;
    fn device_reset<'life0, 'async_trait>(
        &'life0 self,
    ) -> Pin<Box<dyn Future<Output = Result<(), Error>> + Send + 'async_trait>>
       where Self: 'async_trait,
             'life0: 'async_trait;
}
Expand description

Implemented by all ApiClient implementations.

Required Methods§

Source

fn set_device_info<'life0, 'async_trait>( &'life0 self, device_info_params: Value, ) -> Pin<Box<dyn Future<Output = Result<(), Error>> + Send + 'async_trait>>
where Self: 'async_trait, 'life0: 'async_trait,

Sets device info by sending the given parameters.

Source

fn device_reboot<'life0, 'async_trait>( &'life0 self, delay_s: u16, ) -> Pin<Box<dyn Future<Output = Result<(), Error>> + Send + 'async_trait>>
where Self: 'async_trait, 'life0: 'async_trait,

Reboots the device.

Source

fn device_reset<'life0, 'async_trait>( &'life0 self, ) -> Pin<Box<dyn Future<Output = Result<(), Error>> + Send + 'async_trait>>
where Self: 'async_trait, 'life0: 'async_trait,

Hardware resets the device.

Implementors§