pub enum LineKind {
Out,
Info,
Ok,
Warn,
Err,
Dim,
Command {
user: String,
host: String,
cwd: String,
cmd: String,
},
}Expand description
How a TerminalLine is coloured when rendered.
Variants§
Out
Plain output, rendered in the primary text colour.
Info
Informational text, rendered faint and italic.
Ok
Successful output, rendered in the success green.
Warn
Warning, rendered in amber.
Err
Error, rendered in danger red.
Dim
Dimmed secondary output, rendered in muted grey.
Command
A command echo with a full prompt prefix (user@host:cwd$ cmd).
When this variant is used, the text field of TerminalLine is
ignored; the command text is stored inline.
Trait Implementations§
impl Eq for LineKind
impl StructuralPartialEq for LineKind
Auto Trait Implementations§
impl Freeze for LineKind
impl RefUnwindSafe for LineKind
impl Send for LineKind
impl Sync for LineKind
impl Unpin for LineKind
impl UnsafeUnpin for LineKind
impl UnwindSafe for LineKind
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