Struct follow_heating::io::devices::DevicesFromFile
source · pub struct DevicesFromFile {
file: String,
active_within_minutes: usize,
}
Fields§
§file: String
§active_within_minutes: usize
Implementations§
Trait Implementations§
source§impl ActiveDevices for DevicesFromFile
impl ActiveDevices for DevicesFromFile
source§fn get_active_devices(
&mut self,
time: &DateTime<Utc>
) -> Result<Vec<Device>, BrainFailure>
fn get_active_devices( &mut self, time: &DateTime<Utc> ) -> Result<Vec<Device>, BrainFailure>
Get all devices currently considered active.
source§fn get_active_devices_within(
&mut self,
time: &DateTime<Utc>,
minutes: usize
) -> Result<Vec<Device>, BrainFailure>
fn get_active_devices_within( &mut self, time: &DateTime<Utc>, minutes: usize ) -> Result<Vec<Device>, BrainFailure>
Get all devices that were active within the last x minutes.
Auto Trait Implementations§
impl RefUnwindSafe for DevicesFromFile
impl Send for DevicesFromFile
impl Sync for DevicesFromFile
impl Unpin for DevicesFromFile
impl UnwindSafe for DevicesFromFile
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