Enum jdn_cli::CliError[][src]

pub enum CliError {
    InvalidNumberOfArguments {
        min: usize,
        max: Option<usize>,
        given: usize,
    },
    ArgumentParseFailure(String),
    ExecutionError(String),
}

An enumeration of errors that can occur while executing a CLI command.

Variants

InvalidNumberOfArguments

Indicates an invalid number of arguments was given to the handler.

Show fields

Fields of InvalidNumberOfArguments

min: usize

The minimum or only number of arguments expected.

max: Option<usize>

The maximum number of arguments expected.

given: usize

The number of arguments that was given to the handler.

ArgumentParseFailure(String)

Indicates an argument was unable to be coerced from a String. The internal attribute contains a description of the error that occurred.

ExecutionError(String)

Indicates an error occurred while executing the command. The internal attribute contains a description of the error that occurred.

Trait Implementations

impl Debug for CliError[src]

impl Display for CliError[src]

impl Error for CliError[src]

Auto Trait Implementations

impl RefUnwindSafe for CliError

impl Send for CliError

impl Sync for CliError

impl Unpin for CliError

impl UnwindSafe for CliError

Blanket Implementations

impl<T> Any for T where
    T: 'static + ?Sized
[src]

impl<T> Borrow<T> for T where
    T: ?Sized
[src]

impl<T> BorrowMut<T> for T where
    T: ?Sized
[src]

impl<T> From<T> for T[src]

impl<T, U> Into<U> for T where
    U: From<T>, 
[src]

impl<T> ToString for T where
    T: Display + ?Sized
[src]

impl<T, U> TryFrom<U> for T where
    U: Into<T>, 
[src]

type Error = Infallible

The type returned in the event of a conversion error.

impl<T, U> TryInto<U> for T where
    U: TryFrom<T>, 
[src]

type Error = <U as TryFrom<T>>::Error

The type returned in the event of a conversion error.