Struct follow_heating::io::temperatures::file::LiveFileTemperatures
source · pub struct LiveFileTemperatures {
file: PathBuf,
last_data: CachedPrevious<TempsFileData>,
}
Fields§
§file: PathBuf
§last_data: CachedPrevious<TempsFileData>
Implementations§
source§impl LiveFileTemperatures
impl LiveFileTemperatures
pub fn new(file: PathBuf) -> Self
pub fn read_temps_data(&self) -> Result<TempsFileData, String>
Trait Implementations§
source§impl TemperatureManager for LiveFileTemperatures
impl TemperatureManager for LiveFileTemperatures
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 LiveFileTemperatures
impl Send for LiveFileTemperatures
impl Sync for LiveFileTemperatures
impl Unpin for LiveFileTemperatures
impl UnwindSafe for LiveFileTemperatures
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