pub enum Action {
Show 46 variants
Quit,
Scan,
Refresh,
Connect,
ConnectAll,
Disconnect,
SyncHistory,
SelectNext,
SelectPrevious,
NextTab,
PreviousTab,
ToggleHelp,
ToggleLogging,
ToggleBell,
DismissAlert,
ScrollUp,
ScrollDown,
SetHistoryFilter(HistoryFilter),
IncreaseThreshold,
DecreaseThreshold,
ChangeSetting,
ExportHistory,
ToggleAlertHistory,
CycleDeviceFilter,
ToggleSidebar,
ToggleSidebarWidth,
MouseClick {
x: u16,
y: u16,
},
Confirm,
Cancel,
ToggleChart,
EditAlias,
TextInput(char),
TextBackspace,
TextSubmit,
TextCancel,
ToggleStickyAlerts,
ToggleComparison,
NextComparisonDevice,
PrevComparisonDevice,
ShowErrorDetails,
ToggleTheme,
ToggleChartTemp,
ToggleChartHumidity,
ToggleBleRange,
ToggleSmartHome,
None,
}Expand description
User actions that can be triggered by keyboard input.
Variants§
Quit
Quit the application.
Scan
Start scanning for devices.
Refresh
Refresh readings for all connected devices.
Connect
Connect to the currently selected device.
ConnectAll
Connect to all devices.
Disconnect
Disconnect from the currently selected device.
SyncHistory
Sync history from the currently selected device.
SelectNext
Select the next item in the list.
SelectPrevious
Select the previous item in the list.
NextTab
Switch to the next tab.
PreviousTab
Switch to the previous tab.
ToggleHelp
Toggle the help overlay.
ToggleLogging
Toggle data logging.
ToggleBell
Toggle terminal bell for alerts.
DismissAlert
Dismiss current alert.
ScrollUp
Scroll history up.
ScrollDown
Scroll history down.
SetHistoryFilter(HistoryFilter)
Set history filter.
IncreaseThreshold
Increase threshold value.
DecreaseThreshold
Decrease threshold value.
ChangeSetting
Change setting value (in Settings tab).
ExportHistory
Export history to CSV file.
ToggleAlertHistory
Toggle alert history view.
CycleDeviceFilter
Cycle device filter.
ToggleSidebar
Toggle sidebar visibility.
ToggleSidebarWidth
Toggle sidebar width.
MouseClick
Mouse click at coordinates.
Confirm
Confirm pending action.
Cancel
Cancel pending action.
ToggleChart
Toggle full-screen chart view.
EditAlias
Start editing device alias.
TextInput(char)
Input character for text input.
TextBackspace
Backspace for text input.
TextSubmit
Submit text input.
TextCancel
Cancel text input.
ToggleStickyAlerts
Toggle sticky alerts.
ToggleComparison
Toggle comparison view.
NextComparisonDevice
Cycle comparison device forward.
PrevComparisonDevice
Cycle comparison device backward.
ShowErrorDetails
Show error details popup.
ToggleTheme
Toggle theme.
ToggleChartTemp
Toggle temperature on chart.
ToggleChartHumidity
Toggle humidity on chart.
ToggleBleRange
Toggle Bluetooth range.
ToggleSmartHome
Toggle Smart Home mode.
None
No action (unrecognized key).
Trait Implementations§
impl Copy for Action
impl Eq for Action
impl StructuralPartialEq for Action
Auto Trait Implementations§
impl Freeze for Action
impl RefUnwindSafe for Action
impl Send for Action
impl Sync for Action
impl Unpin for Action
impl UnwindSafe for Action
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
Source§impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
Source§impl<Q, K> Equivalent<K> for Q
impl<Q, K> Equivalent<K> for Q
Source§fn equivalent(&self, key: &K) -> bool
fn equivalent(&self, key: &K) -> bool
key and return true if they are equal.Source§impl<Q, K> Equivalent<K> for Q
impl<Q, K> Equivalent<K> for Q
Source§impl<T> Instrument for T
impl<T> Instrument for T
Source§fn instrument(self, span: Span) -> Instrumented<Self>
fn instrument(self, span: Span) -> Instrumented<Self>
Source§fn in_current_span(self) -> Instrumented<Self>
fn in_current_span(self) -> Instrumented<Self>
Source§impl<T> IntoEither for T
impl<T> IntoEither for T
Source§fn into_either(self, into_left: bool) -> Either<Self, Self>
fn into_either(self, into_left: bool) -> Either<Self, Self>
self into a Left variant of Either<Self, Self>
if into_left is true.
Converts self into a Right variant of Either<Self, Self>
otherwise. Read moreSource§fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
self into a Left variant of Either<Self, Self>
if into_left(&self) returns true.
Converts self into a Right variant of Either<Self, Self>
otherwise. Read more