Enum distant::ExitCode [−][src]
pub enum ExitCode {
Usage,
DataErr,
NoInput,
NoHost,
Unavailable,
Software,
OsErr,
IoError,
TempFail,
Protocol,
Custom(i32),
}
Expand description
Exit codes following https://www.freebsd.org/cgi/man.cgi?query=sysexits&sektion=3
Variants
EX_USAGE (64) - being used when arguments missing or bad arguments provided to CLI
EX_DATAERR (65) - being used when bad data received not in UTF-8 format or transport data is bad
EX_NOINPUT (66) - being used when not getting expected data from launch
EX_NOHOST (68) - being used when failed to resolve a host
EX_UNAVAILABLE (69) - being used when IO error encountered where connection is problem
EX_SOFTWARE (70) - being used for when an action fails as well as for internal errors that can occur like joining a task
EX_OSERR (71) - being used when fork failed
EX_IOERR (74) - being used as catchall for IO errors
EX_TEMPFAIL (75) - being used when we get a timeout
EX_PROTOCOL (76) - being used as catchall for transport errors
Custom(i32)
Custom exit code to pass back verbatim
Tuple Fields of Custom
0: i32
Implementations
Trait Implementations
Auto Trait Implementations
impl RefUnwindSafe for ExitCode
impl UnwindSafe for ExitCode
Blanket Implementations
Mutably borrows from an owned value. Read more
pub fn compat_ref(&self) -> Compat<&T>
pub fn compat_ref(&self) -> Compat<&T>
Applies the [Compat
] adapter by shared reference. Read more
pub fn compat_mut(&mut self) -> Compat<&mut T>
pub fn compat_mut(&mut self) -> Compat<&mut T>
Applies the [Compat
] adapter by mutable reference. Read more