Skip to content
Myr

exit_codes.rs

This file

Path

src/exit_codes.rs

13 lines · 243 bytes · Rust

Last changed by

ErrorCode enum variants to be more descriptiveJosh Leeb-du Toitbefore adoptioncb1cfa1

History of this file

Take it

1pub enum ExitCode {2    GeneralError,3    KilledBySigint,4}56impl Into<i32> for ExitCode {7    fn into(self) -> i32 {8        match self {9            ExitCode::GeneralError => 1,10            ExitCode::KilledBySigint => 130,11        }12    }13}