Struct follow_heating::io::wiser::hub::IpWiserHub
source · pub struct IpWiserHub {
ip: IpAddr,
secret: String,
}
Fields§
§ip: IpAddr
§secret: String
Implementations§
Trait Implementations§
source§impl WiserHub for IpWiserHub
impl WiserHub for IpWiserHub
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,
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,
Sets a boost on room id (should be gotten from get_data Returns when the boost will expire.
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,
Auto Trait Implementations§
impl RefUnwindSafe for IpWiserHub
impl Send for IpWiserHub
impl Sync for IpWiserHub
impl Unpin for IpWiserHub
impl UnwindSafe for IpWiserHub
Blanket Implementations§
source§impl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
source§fn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more