Enum mg_settings::errors::settings::SettingError []

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

Unknown setting name.

Wrong value type for setting.

Fields of WrongType

Methods

impl SettingError

A string describing the error kind.

Trait Implementations

impl Debug for SettingError
[src]

Formats the value using the given formatter.

impl Display for SettingError

Formats the value using the given formatter. Read more