pub enum MenuItem {
Show 17 variants
Status,
Identity,
Settings,
SettingsBack,
Bluetooth,
Gnss,
Radio,
BluetoothBack,
BluetoothToggle,
StartPairing,
ClearBonds,
GnssBack,
GnssToggle,
ShareLocation,
RadioBack,
Forwarding,
Stats,
}Expand description
An entry in the menu.
The enum is the union across all display trackers; a board narrows it
with MenuItems. Declaration order is navigation order, and every
level’s entries are contiguous so stepping stays an index walk.
Variants§
Status
Home. Shows the battery, and whatever else is not nominal.
Identity
This device’s own address, for another device to take down.
Settings
The settings that change something.
SettingsBack
Bluetooth
The Bluetooth submenu.
Gnss
The GNSS submenu.
Radio
The radio submenu.
BluetoothBack
BluetoothToggle
Turn the Bluetooth radio on and off.
StartPairing
Open a time-limited pairing window for a new companion.
ClearBonds
Forget every bonded companion. Confirmed before it runs.
GnssBack
GnssToggle
Turn the GNSS receiver on and off.
Whether position goes out in what the device advertises. A separate decision from whether the device knows where it is.
RadioBack
Forwarding
Whether other nodes’ frames are relayed onward.
Stats
Radio activity since boot: frame counts, power, duty cycle. A page, not an action.
Implementations§
Source§impl MenuItem
impl MenuItem
Sourcepub const fn reads_in_place(self) -> bool
pub const fn reads_in_place(self) -> bool
Whether highlighting this entry is already enough to read it.
A property of the level, not of the entry. The top level is a set of pages the user walks between, so an entry there is the whole panel while the cursor is on it; every level below it is a list, where an entry is one row among its neighbors and reading it takes a Select. The top level is the exception, and this is the one place that says so.
Sourcepub const fn requires_confirmation(self) -> bool
pub const fn requires_confirmation(self) -> bool
Whether selecting this item opens a confirmation page rather than acting immediately.
Destructive items confirm; everything else is either harmless or trivially reversible.
Trait Implementations§
impl Copy for MenuItem
impl Eq for MenuItem
impl StructuralPartialEq for MenuItem
Auto Trait Implementations§
impl Freeze for MenuItem
impl RefUnwindSafe for MenuItem
impl Send for MenuItem
impl Sync for MenuItem
impl Unpin for MenuItem
impl UnwindSafe for MenuItem
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
Source§impl<T> CheckedAs for T
impl<T> CheckedAs for T
Source§fn checked_as<Dst>(self) -> Option<Dst>where
T: CheckedCast<Dst>,
fn checked_as<Dst>(self) -> Option<Dst>where
T: CheckedCast<Dst>,
Source§impl<Src, Dst> CheckedCastFrom<Src> for Dstwhere
Src: CheckedCast<Dst>,
impl<Src, Dst> CheckedCastFrom<Src> for Dstwhere
Src: CheckedCast<Dst>,
Source§fn checked_cast_from(src: Src) -> Option<Dst>
fn checked_cast_from(src: Src) -> Option<Dst>
§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)