pub enum ShellEvent {
PromptStart {
line: u64,
},
CommandStart {
command: CommandExecution,
},
CommandEnd {
command: CommandExecution,
},
CwdChanged {
cwd_uri: String,
},
ShellKindChanged {
shell_kind: ShellKind,
},
ProcessStatusChanged {
status: TerminalProcessStatus,
},
}Expand description
Ordered shell-state change emitted for host/UI consumers.
§Examples
use ailloli_ui_terminal_core::ShellEvent;
assert!(matches!(ShellEvent::PromptStart { line: 3 }, ShellEvent::PromptStart { line: 3 }));Variants§
PromptStart
A prompt became visible at a global terminal line.
CommandStart
A command began.
Fields
§
command: CommandExecutionComplete running command snapshot.
CommandEnd
A command ended or was implicitly superseded.
Fields
§
command: CommandExecutionComplete finished/superseded command snapshot.
CwdChanged
Working-directory URI changed.
ShellKindChanged
Detected/configured shell family changed.
ProcessStatusChanged
Shell/PTY process status changed.
Fields
§
status: TerminalProcessStatusNew process status.
Trait Implementations§
Source§impl Clone for ShellEvent
impl Clone for ShellEvent
Source§fn clone(&self) -> ShellEvent
fn clone(&self) -> ShellEvent
Returns a copy 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 ShellEvent
impl Debug for ShellEvent
Source§impl<'de> Deserialize<'de> for ShellEvent
impl<'de> Deserialize<'de> for ShellEvent
Source§fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
__D: Deserializer<'de>,
fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
__D: Deserializer<'de>,
Deserialize this value from the given Serde deserializer. Read more
Source§impl PartialEq for ShellEvent
impl PartialEq for ShellEvent
Source§impl Serialize for ShellEvent
impl Serialize for ShellEvent
impl Eq for ShellEvent
impl StructuralPartialEq for ShellEvent
Auto Trait Implementations§
impl Freeze for ShellEvent
impl RefUnwindSafe for ShellEvent
impl Send for ShellEvent
impl Sync for ShellEvent
impl Unpin for ShellEvent
impl UnwindSafe for ShellEvent
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