Enum mg_settings::error::SettingError [] [src]

pub enum SettingError {
    UnknownChoice {
        actual: String,
        expected: Vec<&'static str>,
    },
    UnknownSetting(String),
    WrongType {
        actual: String,
        expected: String,
    },
}

Error when getting/setting settings.

Variants

Unknown setting value choice.

Fields of UnknownChoice

The actual value.

The list of expected values.

Unknown setting name.

Wrong value type for setting.

Fields of WrongType

The actual type.

The expected type.

Trait Implementations

impl Debug for SettingError
[src]

Formats the value using the given formatter.

impl Display for SettingError
[src]

Formats the value using the given formatter. Read more

impl Error for SettingError
[src]

A short description of the error. Read more

The lower-level cause of this error, if any. Read more