Struct follow_heating::io::temperatures::database::DBTemperatureManager
source · pub struct DBTemperatureManager {
sensors_cache: Arc<Vec<(DBSensor, ThermisterCalibration)>>,
conn: MySqlPool,
}
Fields§
§sensors_cache: Arc<Vec<(DBSensor, ThermisterCalibration)>>
§conn: MySqlPool
Implementations§
source§impl DBTemperatureManager
impl DBTemperatureManager
pub fn new(conn: MySqlPool) -> DBTemperatureManager
Trait Implementations§
source§impl TemperatureManager for DBTemperatureManager
impl TemperatureManager for DBTemperatureManager
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 DBTemperatureManager
impl Send for DBTemperatureManager
impl Sync for DBTemperatureManager
impl Unpin for DBTemperatureManager
impl !UnwindSafe for DBTemperatureManager
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