SensorProvider

Trait SensorProvider 

Source
pub trait SensorProvider: Send + Sync {
    // Required methods
    fn list_sensors<'life0, 'async_trait>(
        &'life0 self,
    ) -> Pin<Box<dyn Future<Output = IntegrationResult> + Send + 'async_trait>>
       where Self: 'async_trait,
             'life0: 'async_trait;
    fn get_sensor<'life0, 'life1, 'async_trait>(
        &'life0 self,
        sensor_id: &'life1 str,
    ) -> Pin<Box<dyn Future<Output = IntegrationResult> + Send + 'async_trait>>
       where Self: 'async_trait,
             'life0: 'async_trait,
             'life1: 'async_trait;
    fn get_history<'life0, 'life1, 'life2, 'life3, 'async_trait>(
        &'life0 self,
        sensor_id: &'life1 str,
        start: &'life2 str,
        end: &'life3 str,
    ) -> Pin<Box<dyn Future<Output = IntegrationResult> + Send + 'async_trait>>
       where Self: 'async_trait,
             'life0: 'async_trait,
             'life1: 'async_trait,
             'life2: 'async_trait,
             'life3: 'async_trait;
}
Expand description

Sensor provider trait

Required Methods§

Source

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

Source

fn get_sensor<'life0, 'life1, 'async_trait>( &'life0 self, sensor_id: &'life1 str, ) -> Pin<Box<dyn Future<Output = IntegrationResult> + Send + 'async_trait>>
where Self: 'async_trait, 'life0: 'async_trait, 'life1: 'async_trait,

Source

fn get_history<'life0, 'life1, 'life2, 'life3, 'async_trait>( &'life0 self, sensor_id: &'life1 str, start: &'life2 str, end: &'life3 str, ) -> Pin<Box<dyn Future<Output = IntegrationResult> + Send + 'async_trait>>
where Self: 'async_trait, 'life0: 'async_trait, 'life1: 'async_trait, 'life2: 'async_trait, 'life3: 'async_trait,

Implementors§