iroh_util/exitcodes.rs
1//! iroh exit codes
2//!
3//! Exit code constants intended to be passed to
4//! `std::process::exit()`
5
6/// Alias for the numeric type that holds iroh exit codes.
7pub type IrohExitCode = i32;
8
9/// Successful exit
10pub const OK: IrohExitCode = 0;
11
12/// Generic error exit
13pub const ERROR: IrohExitCode = 1;
14
15/// Cannot acquire a resource lock
16pub const LOCKED: IrohExitCode = 2;