pub struct Dummy {
receiver: Mutex<Receiver<ModifyState>>,
heating_off_time: Mutex<RefCell<Option<DateTime<Utc>>>>,
hub: DummyHub,
}
Fields§
§receiver: Mutex<Receiver<ModifyState>>
§heating_off_time: Mutex<RefCell<Option<DateTime<Utc>>>>
§hub: DummyHub
Implementations§
source§impl Dummy
impl Dummy
fn update_state(&self)
Trait Implementations§
source§impl DummyIO for Dummy
impl DummyIO for Dummy
type MessageType = ModifyState
type Config = WiserConfig
fn new(receiver: Receiver<Self::MessageType>, _config: &Self::Config) -> Self
fn create(config: &Self::Config) -> (Self, Sender<Self::MessageType>)where
Self: Sized,
source§impl WiserManager for Dummy
impl WiserManager for Dummy
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 Dummy
impl Send for Dummy
impl Sync for Dummy
impl Unpin for Dummy
impl UnwindSafe for Dummy
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