pub struct TrackedDevice {
pub beacon: HiveBeacon,
pub address: String,
pub rssi: i8,
pub rssi_history: Vec<i8>,
pub first_seen_ms: u64,
pub last_seen_ms: u64,
pub estimated_distance: Option<f32>,
pub connectable: bool,
}Expand description
Tracked device state
Fields§
§beacon: HiveBeaconLast received beacon
address: StringDevice address
rssi: i8Last RSSI reading
rssi_history: Vec<i8>RSSI history for averaging (last N readings)
first_seen_ms: u64When first discovered (monotonic ms timestamp)
last_seen_ms: u64When last beacon received (monotonic ms timestamp)
estimated_distance: Option<f32>Estimated distance in meters
connectable: boolWhether this device is currently connectable
Implementations§
Source§impl TrackedDevice
impl TrackedDevice
Trait Implementations§
Source§impl Clone for TrackedDevice
impl Clone for TrackedDevice
Source§fn clone(&self) -> TrackedDevice
fn clone(&self) -> TrackedDevice
Returns a duplicate of the value. Read more
1.0.0 · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source. Read moreAuto Trait Implementations§
impl Freeze for TrackedDevice
impl RefUnwindSafe for TrackedDevice
impl Send for TrackedDevice
impl Sync for TrackedDevice
impl Unpin for TrackedDevice
impl UnwindSafe for TrackedDevice
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