pub enum BeaconTrigger {
Button,
Advertise {
nonce: Option<u32>,
},
AutoAdvertise,
Beacon,
}Expand description
Why a beacon was requested. Carried through BEACON_TRIGGER so the
send path never assumes a button.
Variants§
Button
The board’s primary-action button slot. Boards without one carry the variant unused.
Advertise
Emit a solicited advertisement — a broadcast carrying the signed
node identity payload — echoing nonce when set. Currently
unconstructed: the Identity Request responder that will drive it
(with a targeted unicast reply) is a follow-up; the generator is
kept for that pass.
AutoAdvertise
Emit an advertisement on the device’s own schedule
(PROP_ADVERT_INTERVAL) or at bring-up.
Distinct from Button because it goes out with no
flood budget: a scheduled advertisement is a standing statement
rather than an introduction, so it reaches the neighbours that can
hear the device and stops, and repeating it across the mesh every
interval would cost far more airtime than it is worth.
Beacon
Emit a beacon — a broadcast with no payload at all — which announces a path back to the device rather than who it is.
Trait Implementations§
Source§impl Clone for BeaconTrigger
impl Clone for BeaconTrigger
Source§fn clone(&self) -> BeaconTrigger
fn clone(&self) -> BeaconTrigger
1.0.0§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
source. Read moreimpl Copy for BeaconTrigger
Auto Trait Implementations§
impl Freeze for BeaconTrigger
impl RefUnwindSafe for BeaconTrigger
impl Send for BeaconTrigger
impl Sync for BeaconTrigger
impl Unpin for BeaconTrigger
impl UnwindSafe for BeaconTrigger
Blanket Implementations§
§impl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
§fn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
§impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
§unsafe fn clone_to_uninit(&self, dest: *mut u8)
unsafe fn clone_to_uninit(&self, dest: *mut u8)
clone_to_uninit)