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
UnknownChoice
Unknown setting value choice.
Fields of UnknownChoice
actual: String | The actual value. |
expected: Vec<&'static str> | The list of expected values. |
UnknownSetting(String)
Unknown setting name.
WrongType
Wrong value type for setting.
Fields of WrongType
actual: String | The actual type. |
expected: String | The expected type. |
Trait Implementations
impl Debug for SettingError
[src]
impl Display for SettingError
[src]
fn fmt(&self, formatter: &mut Formatter) -> Result<(), Error>
Formats the value using the given formatter. Read more