pub enum OutputLine {
System(String),
Command(String),
Warn(String),
Alert(String),
}Expand description
One atomic output action the caller must handle. A single
dispatch can emit multiple — e.g. /help emits several Lines.
Variants§
System(String)
Informational, rendered as system text.
Command(String)
Multi-field engine output, rendered as command text.
Warn(String)
Rendered amber — an advisory, not a block.
Alert(String)
Rendered red + bold — operator must not miss.
Implementations§
Trait Implementations§
Source§impl Clone for OutputLine
impl Clone for OutputLine
Source§fn clone(&self) -> OutputLine
fn clone(&self) -> OutputLine
Returns a duplicate 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 OutputLine
impl Debug for OutputLine
Source§impl PartialEq for OutputLine
impl PartialEq for OutputLine
impl Eq for OutputLine
impl StructuralPartialEq for OutputLine
Auto Trait Implementations§
impl Freeze for OutputLine
impl RefUnwindSafe for OutputLine
impl Send for OutputLine
impl Sync for OutputLine
impl Unpin for OutputLine
impl UnsafeUnpin for OutputLine
impl UnwindSafe for OutputLine
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