Struct follow_heating::io::temperatures::dummy::Dummy
source · pub struct Dummy {
receiver: Mutex<Receiver<ModifyState>>,
temps: Mutex<RefCell<HashMap<Sensor, f32>>>,
}
Fields§
§receiver: Mutex<Receiver<ModifyState>>
§temps: Mutex<RefCell<HashMap<Sensor, f32>>>
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 = ()
fn new(receiver: Receiver<Self::MessageType>, _config: &()) -> Self
fn create(config: &Self::Config) -> (Self, Sender<Self::MessageType>)where
Self: Sized,
source§impl TemperatureManager for Dummy
impl TemperatureManager for Dummy
fn retrieve_sensors<'life0, 'async_trait>(
&'life0 mut self
) -> Pin<Box<dyn Future<Output = Result<(), String>> + Send + 'async_trait>>where
Self: 'async_trait,
'life0: 'async_trait,
fn retrieve_temperatures<'life0, 'async_trait>(
&'life0 self
) -> Pin<Box<dyn Future<Output = Result<HashMap<Sensor, f32>, String>> + Send + 'async_trait>>where
Self: 'async_trait,
'life0: 'async_trait,
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