pub trait WiserHub {
    // Required methods
    fn get_data<'life0, 'async_trait>(
        &'life0 self
    ) -> Pin<Box<dyn Future<Output = Result<WiserData, RetrieveDataError>> + Send + 'async_trait>>
       where Self: 'async_trait,
             'life0: 'async_trait;
    fn get_room_data<'life0, 'async_trait>(
        &'life0 self
    ) -> Pin<Box<dyn Future<Output = Result<Vec<WiserRoomData>, RetrieveDataError>> + Send + 'async_trait>>
       where Self: 'async_trait,
             'life0: 'async_trait;
    fn cancel_boost<'life0, 'async_trait>(
        &'life0 self,
        room_id: usize,
        originator: String
    ) -> Pin<Box<dyn Future<Output = Result<(), Box<dyn Error>>> + Send + 'async_trait>>
       where Self: 'async_trait,
             'life0: 'async_trait;
    fn set_boost<'life0, 'async_trait>(
        &'life0 self,
        room_id: usize,
        duration_minutes: usize,
        temp: f32,
        originator: String
    ) -> Pin<Box<dyn Future<Output = Result<(f32, DateTime<Utc>), Box<dyn Error>>> + Send + 'async_trait>>
       where Self: 'async_trait,
             'life0: 'async_trait;
}

Required Methods§

source

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

source

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

source

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

source

fn set_boost<'life0, 'async_trait>( &'life0 self, room_id: usize, duration_minutes: usize, temp: f32, originator: String ) -> Pin<Box<dyn Future<Output = Result<(f32, DateTime<Utc>), Box<dyn Error>>> + Send + 'async_trait>>
where Self: 'async_trait, 'life0: 'async_trait,

Implementors§