pub struct DBAndHub {
hub: IpWiserHub,
conn: MySqlPool,
}
Fields§
§hub: IpWiserHub
§conn: MySqlPool
Implementations§
Trait Implementations§
source§impl WiserManager for DBAndHub
impl WiserManager for DBAndHub
fn get_heating_turn_off_time<'life0, 'async_trait>(
&'life0 self
) -> Pin<Box<dyn Future<Output = Option<DateTime<Utc>>> + Send + 'async_trait>>where
Self: 'async_trait,
'life0: 'async_trait,
fn get_heating_on<'life0, 'async_trait>(
&'life0 self
) -> Pin<Box<dyn Future<Output = Result<bool, ()>> + Send + 'async_trait>>where
Self: 'async_trait,
'life0: 'async_trait,
fn get_wiser_hub(&self) -> &dyn WiserHub
Auto Trait Implementations§
impl !RefUnwindSafe for DBAndHub
impl Send for DBAndHub
impl Sync for DBAndHub
impl Unpin for DBAndHub
impl !UnwindSafe for DBAndHub
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