Enum cfg_rs::ConfigError[][src]

pub enum ConfigError {
    ConfigNotFound(String),
    ConfigRecursiveNotFound(String),
    ConfigTypeMismatch(String, &'static str, &'static str),
    ConfigParseError(String, String),
    ConfigRecursiveError(String),
    ConfigFileNotExists(PathBuf),
    ConfigFileNotSupported(PathBuf),
    RefValueRecursiveError,
    ConfigCause(Box<dyn Error + 'static>),
}
Expand description

Configuration Error.

Variants

ConfigNotFound

Config not found.

Tuple Fields of ConfigNotFound

0: String
ConfigRecursiveNotFound

Config not found when parsing placeholder.

Tuple Fields of ConfigRecursiveNotFound

0: String
ConfigTypeMismatch

Config type mismatch.

Tuple Fields of ConfigTypeMismatch

0: String1: &'static str2: &'static str
ConfigParseError

Config parse error.

Tuple Fields of ConfigParseError

0: String1: String
ConfigRecursiveError

Config recursively parsed.

Tuple Fields of ConfigRecursiveError

0: String
ConfigFileNotExists

Config file not exists.

Tuple Fields of ConfigFileNotExists

0: PathBuf
ConfigFileNotSupported

Config file not supported.

Tuple Fields of ConfigFileNotSupported

0: PathBuf
RefValueRecursiveError

Ref value cannot define recursively.

ConfigCause

Config parse error with other error.

Tuple Fields of ConfigCause

0: Box<dyn Error + 'static>

Trait Implementations

Formats the value using the given formatter. Read more

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.

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.