pub enum Action {
Show 70 variants
Quit,
Resize(u16, u16),
FocusNext,
FocusPrevious,
FocusPanel(PanelType),
ToggleFullscreen,
SwitchLayout,
EnterWindowNavMode,
ExitWindowNavMode,
WindowNavMove(WindowDirection),
InsertChar(char),
DeleteChar,
MoveCursor(CursorDirection),
DeleteWord,
DeletePreviousWord,
DeleteToEnd,
DeleteToBeginning,
MoveToBeginning,
MoveToEnd,
SubmitCommand,
SubmitCommandWithText {
command: String,
},
HistoryUp,
HistoryDown,
HistoryPrevious,
HistoryNext,
EnterCommandMode,
ExitCommandMode,
EnterInputMode,
CommandCursorUp,
CommandCursorDown,
CommandCursorLeft,
CommandCursorRight,
CommandHalfPageUp,
CommandHalfPageDown,
EnterScriptMode(String),
ExitScriptMode,
SubmitScript,
CancelScript,
InsertNewline,
InsertTab,
AddResponseWithStyle {
content: String,
styled_lines: Option<Vec<Line<'static>>>,
response_type: ResponseType,
},
AddStyledWelcomeMessage {
styled_lines: Vec<Line<'static>>,
response_type: ResponseType,
},
CommandCompleted,
CommandFailed(String),
SendRuntimeCommand(RuntimeCommand),
HandleRuntimeStatus(RuntimeStatus),
HandleTraceEvent(ParsedTraceEvent),
LoadSource {
path: String,
line: Option<usize>,
},
EnterFileSearch,
ExitFileSearch,
EnterTextSearch,
ExitTextSearch,
NavigateSource(SourceNavigation),
SourceSearchInput(char),
SourceSearchBackspace,
SourceSearchConfirm,
SourceFileSearchInput(char),
SourceFileSearchBackspace,
SourceFileSearchConfirm,
SourceNumberInput(char),
SourceGoToLine,
SourceGoToBottom,
SetTraceFromSourceLine,
NavigateEbpf(EbpfNavigation),
SaveEbpfOutput {
filename: Option<String>,
},
SaveCommandSession {
filename: Option<String>,
},
StopSaveOutput,
StopSaveSession,
NoOp,
SetSourcePanelVisibility(bool),
}Expand description
Central Action enum for TEA architecture All possible actions/messages that can modify application state
Variants§
Quit
Resize(u16, u16)
FocusNext
FocusPrevious
FocusPanel(PanelType)
ToggleFullscreen
SwitchLayout
InsertChar(char)
DeleteChar
MoveCursor(CursorDirection)
DeleteWord
DeletePreviousWord
DeleteToEnd
DeleteToBeginning
MoveToBeginning
MoveToEnd
SubmitCommand
SubmitCommandWithText
HistoryUp
HistoryDown
HistoryPrevious
HistoryNext
EnterCommandMode
ExitCommandMode
EnterInputMode
CommandCursorUp
CommandCursorDown
CommandCursorLeft
CommandCursorRight
CommandHalfPageUp
CommandHalfPageDown
EnterScriptMode(String)
ExitScriptMode
SubmitScript
CancelScript
InsertNewline
InsertTab
AddResponseWithStyle
AddStyledWelcomeMessage
CommandCompleted
CommandFailed(String)
SendRuntimeCommand(RuntimeCommand)
HandleRuntimeStatus(RuntimeStatus)
HandleTraceEvent(ParsedTraceEvent)
LoadSource
EnterFileSearch
ExitFileSearch
EnterTextSearch
ExitTextSearch
SourceSearchInput(char)
SourceSearchBackspace
SourceSearchConfirm
SourceFileSearchInput(char)
SourceFileSearchBackspace
SourceFileSearchConfirm
SourceNumberInput(char)
SourceGoToLine
SourceGoToBottom
SetTraceFromSourceLine
SaveEbpfOutput
SaveCommandSession
StopSaveOutput
StopSaveSession
NoOp
SetSourcePanelVisibility(bool)
Trait Implementations§
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
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<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