pub trait ExitCode {
    fn exit_code(&self) -> i32 { ... }
}
Expand description

Provide exit_code method for errors. Intended to be passed to std::process::exit.

Conforms to sysexits.h and defaults to 70 for “software error”. Implementing this trait for your custom error types allows your application to return the correct code — even when wrapped in an Error.

Provided Methods

CLI application exit code

Implementations on Foreign Types

Implementors