pub trait ToExitCode {
    // Required method
    fn to_exit_code(&self) -> i32;
}
Expand description

marks errors that can be converted to an exit code

Required Methods§

source

fn to_exit_code(&self) -> i32

returns the appropriate exit code for a given error

Implementors§