pub trait OutputSink: Send {
// Required methods
fn stdout_chunk(&mut self, data: &str) -> Result<()>;
fn stderr_chunk(&mut self, data: &str) -> Result<()>;
fn error_message(&mut self, message: &str);
}Required Methods§
fn stdout_chunk(&mut self, data: &str) -> Result<()>
fn stderr_chunk(&mut self, data: &str) -> Result<()>
fn error_message(&mut self, message: &str)
Dyn Compatibility§
This trait is dyn compatible.
In older versions of Rust, dyn compatibility was called "object safety".