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§

source

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>

Get all devices that were active within the last x minutes.

Implementors§