Enum simple_config_parser::ConfigError[][src]

pub enum ConfigError {
    FileReadError,
    NoFileDefined,
    InvalidConfig,
    ParseError,
    NoItem,
}
Expand description

Some errors that can be thrown by this module

Variants

FileReadError

Error reading the file from disk Could have been caused by the file not existing or being inaccessible.

NoFileDefined

File path has not been defined You need to define the path to the config file before using this function. Or just use cfg.parse("<STRING>"); instead.

InvalidConfig

The config data is not valid The data read from the file is not valid.

ParseError

Error Parseing config value into specified type

NoItem

No item for the key provided exists

Trait Implementations

Formats the value using the given formatter. Read more

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.

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.