[][src]Enum argwerk::ErrorKind

pub enum ErrorKind {
    Unsupported {
        argument: Box<str>,
    },
    MissingParameter {
        argument: Box<str>,
        name: &'static str,
    },
    MissingPositional {
        name: &'static str,
    },
    Error {
        argument: Box<str>,
        error: Box<dyn Error + Send + Sync + 'static>,
    },
}

The kind of an error.

Variants

Unsupported

An argument that is unsupported.

Fields of Unsupported

argument: Box<str>

An unsupported argument.

MissingParameter

When a parameter to an argument is missing.

Fields of MissingParameter

argument: Box<str>

The argument where the named argument was missing, like --file in --file <path>.

name: &'static str

The parameter that was missing, like path in --file <path>.

MissingPositional

When a positional parameter is missing.

Fields of MissingPositional

name: &'static str

The parameter that was missing, like path in <path>.

Error

When an error has been raised while processing an argument, typically when something is being parsed.

Fields of Error

argument: Box<str>

The argument that could not be parsed.

error: Box<dyn Error + Send + Sync + 'static>

The error that caused the parsing error.

Trait Implementations

impl Debug for ErrorKind[src]

Auto Trait Implementations

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, 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.