Enum mg_settings::errors::settings::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 | |
expected: Vec<&'static str> |
UnknownSetting(String)
Unknown setting name.
WrongType
Wrong value type for setting.
Fields of WrongType
actual: String | |
expected: String |
Trait Implementations
impl Debug for SettingError
[src]
fn fmt(&self, __arg_0: &mut Formatter) -> Result
[src]
Formats the value using the given formatter. Read more
impl PartialEq for SettingError
[src]
fn eq(&self, __arg_0: &SettingError) -> bool
[src]
This method tests for self
and other
values to be equal, and is used by ==
. Read more
fn ne(&self, __arg_0: &SettingError) -> bool
[src]
This method tests for !=
.