pub enum ErrorKind {
    NoSection(String),
    MissingValue(StringString),
    InvalidValue(StringStringString),
    UnknownKey(StringString),
    Runtime(String),
    Utf8(Utf8Error),
    Io(Error),
}
Expand description

A list of possible errors that may occur when parsing a pacman.conf

Variants

NoSection(String)

A directive was specified outside of a section. The variant holds the key name.

MissingValue(StringString)

A directive that requires a value was specified without a value. The variant holds the section and key.

InvalidValue(StringStringString)

A directive was given with an invalid value. The variant holds the section, key and value.

UnknownKey(StringString)

A directive was given with an unknown key. The variant holds the section and key.

Runtime(String)

An error occurred while executing pacman-conf. This variant hold the stdout of pacman-coonf

Utf8(Utf8Error)

A utf8 error occurred.

Io(Error)

An IO error occurred.

Trait Implementations

Formats the value using the given formatter. Read more

Formats the value using the given formatter. Read more

Performs the conversion.

Performs the conversion.

Performs the conversion.

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.

Converts the given value to a String. 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.