pub enum TerminalEventKind {
OutputBytes {
bytes: Vec<u8>,
},
InputBytes {
bytes: Vec<u8>,
},
Resize {
size: TerminalSize,
},
Warning {
warning: TerminalWarning,
},
Diagnostic {
diagnostic: TerminalDiagnostic,
},
CommandStarted {
command: CommandExecution,
},
CommandFinished {
command: CommandExecution,
},
}Expand description
Event payload accepted by TerminalEventLog.
§Examples
use ailloli_ui_terminal_core::{TerminalEventKind, TerminalSize};
let event = TerminalEventKind::Resize { size: TerminalSize::new(24, 80) };
assert!(matches!(event, TerminalEventKind::Resize { .. }));Variants§
OutputBytes
Bytes emitted by the terminal process; replay parses the sanitized copy.
InputBytes
Bytes sent toward the terminal process; replay skips this event.
Resize
Active-screen resize; replay applies the state’s default resize policy.
Fields
§
size: TerminalSizeTarget rows and columns.
Warning
Terminal warning; stored verbatim and replayed by appending a clone.
Fields
§
warning: TerminalWarningWarning payload, which can contain unsanitized text.
Diagnostic
Classified diagnostic; replay skips this event.
Fields
§
diagnostic: TerminalDiagnosticDiagnostic whose message alone is passed through text redaction.
CommandStarted
Command-start observation; replay skips this event.
Fields
§
command: CommandExecutionCommand whose command line alone is redacted; CWD remains verbatim.
CommandFinished
Command-finish observation; replay skips this event.
Fields
§
command: CommandExecutionCommand whose command line alone is redacted; CWD remains verbatim.
Trait Implementations§
Source§impl Clone for TerminalEventKind
impl Clone for TerminalEventKind
Source§fn clone(&self) -> TerminalEventKind
fn clone(&self) -> TerminalEventKind
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 TerminalEventKind
impl Debug for TerminalEventKind
Source§impl<'de> Deserialize<'de> for TerminalEventKind
impl<'de> Deserialize<'de> for TerminalEventKind
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 TerminalEventKind
impl PartialEq for TerminalEventKind
Source§impl Serialize for TerminalEventKind
impl Serialize for TerminalEventKind
impl Eq for TerminalEventKind
impl StructuralPartialEq for TerminalEventKind
Auto Trait Implementations§
impl Freeze for TerminalEventKind
impl RefUnwindSafe for TerminalEventKind
impl Send for TerminalEventKind
impl Sync for TerminalEventKind
impl Unpin for TerminalEventKind
impl UnwindSafe for TerminalEventKind
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