Skip to main content

OutputSink

Trait OutputSink 

Source
pub trait OutputSink: Send + Sync {
    // Required methods
    fn on_stdout(&self, line: &str);
    fn on_stderr(&self, line: &str);
}
Expand description

Receives stdout/stderr lines during execution.

Required Methods§

Source

fn on_stdout(&self, line: &str)

Source

fn on_stderr(&self, line: &str)

Dyn Compatibility§

This trait is dyn compatible.

In older versions of Rust, dyn compatibility was called "object safety".

Implementors§