Trait follow_heating::brain::python_like::control::devices::ActiveDevices
source · pub trait ActiveDevices {
// Required methods
fn get_active_devices(
&mut self,
time: &DateTime<Utc>
) -> Result<Vec<Device>, BrainFailure>;
fn get_active_devices_within(
&mut self,
time: &DateTime<Utc>,
minutes: usize
) -> Result<Vec<Device>, BrainFailure>;
}
Expand description
Handles obtaining data about which devices are active.
Required Methods§
sourcefn 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.
sourcefn 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.