Struct follow_heating::io::wiser::filehub::FileAndHub
source · pub struct FileAndHub {
file: PathBuf,
last_data: CachedPrevious<WiserFileData>,
hub: IpWiserHub,
}
Fields§
§file: PathBuf
§last_data: CachedPrevious<WiserFileData>
§hub: IpWiserHub
Implementations§
source§impl FileAndHub
impl FileAndHub
pub fn new(file: PathBuf, ip: IpAddr, secret: String) -> Self
fn retrieve_data(&self) -> Result<WiserFileData, String>
Trait Implementations§
source§impl WiserManager for FileAndHub
impl WiserManager for FileAndHub
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 FileAndHub
impl Send for FileAndHub
impl Sync for FileAndHub
impl Unpin for FileAndHub
impl UnwindSafe for FileAndHub
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