pub struct TerminalSink {
pub cli_prompt: Option<String>,
}Expand description
A log sink that formats and prints messages to standard output, supporting terminal colors and interactive prompts.
Fields§
§cli_prompt: Option<String>An optional command-line prompt string to restore after printing a log line.
Trait Implementations§
Source§impl LogSink for TerminalSink
impl LogSink for TerminalSink
Source§fn receive(&self, message: &LogMessage)
fn receive(&self, message: &LogMessage)
Processes a single incoming log message. Read more
Auto Trait Implementations§
impl Freeze for TerminalSink
impl RefUnwindSafe for TerminalSink
impl Send for TerminalSink
impl Sync for TerminalSink
impl Unpin for TerminalSink
impl UnsafeUnpin for TerminalSink
impl UnwindSafe for TerminalSink
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