CliError

Trait CliError 

Source
pub trait CliError: Display + Sized {
    // Provided methods
    fn color(self) -> Self { ... }
    fn code(&self) -> i32 { ... }
    fn print(self) -> Result<()> { ... }
}

Provided Methods§

Source

fn color(self) -> Self

Source

fn code(&self) -> i32

Exit code that should be returned for the error

Source

fn print(self) -> Result<()>

Dyn Compatibility§

This trait is not dyn compatible.

In older versions of Rust, dyn compatibility was called "object safety", so this trait is not object safe.

Implementors§