Trait grafbase_local_common::traits::ToExitCode
source · [−]pub trait ToExitCode {
fn to_exit_code(&self) -> i32;
}Expand description
marks errors that can be converted to an exit code
Required Methods
sourcefn to_exit_code(&self) -> i32
fn to_exit_code(&self) -> i32
returns the appropriate exit code for a given error