Skip to main content

UiSink

Trait UiSink 

Source
pub trait UiSink {
    // Required methods
    fn write_stdout(&mut self, text: &str);
    fn write_stderr(&mut self, text: &str);
}
Expand description

Terminal-facing output sink for stdout/stderr emission.

Required Methods§

Source

fn write_stdout(&mut self, text: &str)

Writes text to the sink’s stdout channel.

Source

fn write_stderr(&mut self, text: &str)

Writes text to the sink’s stderr channel.

Implementors§