pub enum TerminalEventKind {
AppendLine(TerminalLine),
StdoutChunk(String),
StderrChunk(String),
Status(String),
Clear,
}Expand description
Mutation consumed by a TerminalView buffer.
§Examples
use ailloli_ui_widgets::controls::{TerminalEventKind, TerminalLine};
let event = TerminalEventKind::AppendLine(TerminalLine::new("ready"));
assert!(matches!(event, TerminalEventKind::AppendLine(_)));Variants§
AppendLine(TerminalLine)
Flushes a pending chunk then appends one complete line.
StdoutChunk(String)
Joins stdout text to the partial line and splits on \n.
StderrChunk(String)
Joins stderr text to the partial line and splits on \n.
Status(String)
Flushes a pending chunk then appends an untimestamped system line.
Clear
Removes complete and partial lines.
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 PartialEq for TerminalEventKind
impl PartialEq 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
Source§impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
§impl<T> Instrument for T
impl<T> Instrument for T
§fn instrument(self, span: Span) -> Instrumented<Self>
fn instrument(self, span: Span) -> Instrumented<Self>
§fn in_current_span(self) -> Instrumented<Self>
fn in_current_span(self) -> Instrumented<Self>
§impl<A> IntoClickAction<A> for Awhere
A: Clone + 'static,
impl<A> IntoClickAction<A> for Awhere
A: Clone + 'static,
§fn into_click_action(self) -> ClickAction<A>
fn into_click_action(self) -> ClickAction<A>
Implements the into_click_action helper used by this module.