pub trait CliOutput: Send + Sync {
// Required methods
fn line(&self, message: &str) -> Result<()>;
fn warn(&self, message: &str) -> Result<()>;
fn error(&self, message: &str) -> Result<()>;
fn raw_stdout(&self, content: &str) -> Result<()>;
}Expand description
Stable user-facing CLI output.
This is intentionally separate from diagnostic tracing events: messages
emitted here are part of the command-line contract and must stay script-safe.
Required Methods§
fn line(&self, message: &str) -> Result<()>
fn warn(&self, message: &str) -> Result<()>
fn error(&self, message: &str) -> Result<()>
fn raw_stdout(&self, content: &str) -> Result<()>
Dyn Compatibility§
This trait is dyn compatible.
In older versions of Rust, dyn compatibility was called "object safety".