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

Usage

EX_USAGE (64) - being used when arguments missing or bad arguments provided to CLI

DataErr

EX_DATAERR (65) - being used when bad data received not in UTF-8 format or transport data is bad

NoInput

EX_NOINPUT (66) - being used when not getting expected data from launch

NoHost

EX_NOHOST (68) - being used when failed to resolve a host

Unavailable

EX_UNAVAILABLE (69) - being used when IO error encountered where connection is problem

Software

EX_SOFTWARE (70) - being used for when an action fails as well as for internal errors that can occur like joining a task

OsErr

EX_OSERR (71) - being used when fork failed

IoError

EX_IOERR (74) - being used as catchall for IO errors

TempFail

EX_TEMPFAIL (75) - being used when we get a timeout

Protocol

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

Convert into numeric exit code

Trait Implementations

Returns a copy of the value. Read more

Performs copy-assignment from source. Read more

Performs the conversion.

Feeds this value into the given Hasher. Read more

Feeds a slice of this type into the given Hasher. Read more

This method tests for self and other values to be equal, and is used by ==. Read more

This method tests for !=.

Auto Trait Implementations

Blanket Implementations

Gets the TypeId of self. Read more

Immutably borrows from an owned value. Read more

Mutably borrows from an owned value. Read more

Performs the conversion.

Performs the conversion.

Should always be Self

The resulting type after obtaining ownership.

Creates owned data from borrowed data, usually by cloning. Read more

🔬 This is a nightly-only experimental API. (toowned_clone_into)

recently added

Uses borrowed data to replace owned data, usually by cloning. Read more

The type returned in the event of a conversion error.

Performs the conversion.

The type returned in the event of a conversion error.

Performs the conversion.