ExitCode

Type Alias ExitCode 

Source
pub type ExitCode = ExecutionExitCode;

Aliased Type§

pub enum ExitCode {
    Success,
    GeneralError,
    InvalidUsage,
    CannotExecute,
    NotFound,
    Interrupted,
    Unimplemented,
    Custom(u8),
}

Variants§

§

Success

Indicates successful execution.

§

GeneralError

Indicates a general error.

§

InvalidUsage

Indicates invalid usage.

§

CannotExecute

Cannot execute the command.

§

NotFound

Indicates a command or similar item was not found.

§

Interrupted

Indicates execution was interrupted.

§

Unimplemented

Indicates unimplemented functionality was encountered.

§

Custom(u8)

A custom exit code.