pub enum BeaconReason {
First,
TimeExpired,
Turn,
}Expand description
Reason a SmartBeacon was triggered at a given moment.
Returned by SmartBeaconing::beacon_reason. Useful for logging or
UI display — SmartBeaconing has three distinct trigger conditions,
and users often want to know which one fired.
Variants§
First
First beacon of the session — nothing sent yet.
TimeExpired
Time-based interval elapsed since the previous beacon.
Turn
Heading change exceeded the (speed-dependent) turn threshold.
Trait Implementations§
Source§impl Clone for BeaconReason
impl Clone for BeaconReason
Source§fn clone(&self) -> BeaconReason
fn clone(&self) -> BeaconReason
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 moreSource§impl Debug for BeaconReason
impl Debug for BeaconReason
Source§impl Hash for BeaconReason
impl Hash for BeaconReason
Source§impl PartialEq for BeaconReason
impl PartialEq for BeaconReason
impl Copy for BeaconReason
impl Eq for BeaconReason
impl StructuralPartialEq for BeaconReason
Auto Trait Implementations§
impl Freeze for BeaconReason
impl RefUnwindSafe for BeaconReason
impl Send for BeaconReason
impl Sync for BeaconReason
impl Unpin for BeaconReason
impl UnwindSafe for BeaconReason
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