pub enum DebugAction {
Show 16 variants
Toggle,
CopyFrame,
ToggleState,
ToggleActionLog,
ToggleMouseCapture,
InspectCell {
column: u16,
row: u16,
},
CloseOverlay,
RequestCapture,
ActionLogScrollUp,
ActionLogScrollDown,
ActionLogScrollTop,
ActionLogScrollBottom,
ActionLogPageUp,
ActionLogPageDown,
ActionLogShowDetail,
ActionLogBackToList,
}Expand description
Debug actions provided by tui-dispatch
These are framework-level debug actions that apps can map from their own action types via keybindings.
Variants§
Toggle
Toggle debug freeze mode on/off
CopyFrame
Copy frozen frame to clipboard
ToggleState
Toggle state overlay
ToggleActionLog
Toggle action log overlay
ToggleMouseCapture
Toggle mouse capture mode for cell inspection
InspectCell
Inspect cell at position (from mouse click)
CloseOverlay
Close current overlay
RequestCapture
Request a new frame capture
ActionLogScrollUp
Scroll action log up
ActionLogScrollDown
Scroll action log down
ActionLogScrollTop
Scroll action log to top
ActionLogScrollBottom
Scroll action log to bottom
ActionLogPageUp
Page up in action log
ActionLogPageDown
Page down in action log
ActionLogShowDetail
Show detail for selected action
ActionLogBackToList
Go back from detail view to action log
Implementations§
Source§impl DebugAction
impl DebugAction
Sourcepub const CMD_TOGGLE: &'static str = "debug.toggle"
pub const CMD_TOGGLE: &'static str = "debug.toggle"
Standard command names for keybinding lookup
pub const CMD_COPY_FRAME: &'static str = "debug.copy"
pub const CMD_TOGGLE_STATE: &'static str = "debug.state"
pub const CMD_TOGGLE_ACTION_LOG: &'static str = "debug.action_log"
pub const CMD_TOGGLE_MOUSE: &'static str = "debug.mouse"
pub const CMD_CLOSE_OVERLAY: &'static str = "debug.close"
Sourcepub fn from_command(cmd: &str) -> Option<Self>
pub fn from_command(cmd: &str) -> Option<Self>
Try to parse a command string into a debug action
Trait Implementations§
Source§impl Clone for DebugAction
impl Clone for DebugAction
Source§fn clone(&self) -> DebugAction
fn clone(&self) -> DebugAction
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 DebugAction
impl Debug for DebugAction
Source§impl PartialEq for DebugAction
impl PartialEq for DebugAction
impl Eq for DebugAction
impl StructuralPartialEq for DebugAction
Auto Trait Implementations§
impl Freeze for DebugAction
impl RefUnwindSafe for DebugAction
impl Send for DebugAction
impl Sync for DebugAction
impl Unpin for DebugAction
impl UnwindSafe for DebugAction
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
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
Compare self to
key and return true if they are equal.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>
Converts
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>
Converts
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