1
 2
 3
 4
 5
 6
 7
 8
 9
10
11
12
13
14
15
16
17
use crate::uuid::UUID;
use crate::{beacon, timestamp};
use alloc::collections::BTreeSet;

#[derive(Copy, Clone, PartialOrd, PartialEq, Ord, Eq, Hash)]
pub struct BeaconSource {
    pub beacon: beacon::UnprovisionedDeviceBeacon,
    pub last_seen: timestamp::Timestamp,
}
impl BeaconSource {
    pub fn uuid(&self) -> &UUID {
        &self.beacon.uuid
    }
}
pub struct UnprovisionedBeacons {
    beacons: BTreeSet<BeaconSource>,
}