pub enum RetrieveSettingError {
Missing {
key: String,
},
WrongSingularType {
key: String,
expected: String,
encountered: String,
},
WrongMultipleType {
key: String,
expected: Vec<String>,
encountered: String,
},
}
Expand description
Errors when trying to retrieve settings
Variants§
Missing
Error for attempting to retrieve a non-existent setting key
WrongSingularType
Error for attempting to retrieve a setting value as one type when it is storing another type
Fields
WrongMultipleType
Error for attempting to retrieve a setting value as a certain set of types when it is storing another type
Trait Implementations§
Source§impl Clone for RetrieveSettingError
impl Clone for RetrieveSettingError
Source§fn clone(&self) -> RetrieveSettingError
fn clone(&self) -> RetrieveSettingError
Returns a duplicate of the value. Read more
1.0.0 · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source
. Read moreSource§impl Debug for RetrieveSettingError
impl Debug for RetrieveSettingError
Source§impl Display for RetrieveSettingError
impl Display for RetrieveSettingError
Source§impl Error for RetrieveSettingError
impl Error for RetrieveSettingError
1.30.0 · Source§fn source(&self) -> Option<&(dyn Error + 'static)>
fn source(&self) -> Option<&(dyn Error + 'static)>
Returns the lower-level source of this error, if any. Read more
1.0.0 · Source§fn description(&self) -> &str
fn description(&self) -> &str
👎Deprecated since 1.42.0: use the Display impl or to_string()
Source§impl Hash for RetrieveSettingError
impl Hash for RetrieveSettingError
Source§impl Ord for RetrieveSettingError
impl Ord for RetrieveSettingError
Source§fn cmp(&self, other: &RetrieveSettingError) -> Ordering
fn cmp(&self, other: &RetrieveSettingError) -> Ordering
1.21.0 · Source§fn max(self, other: Self) -> Selfwhere
Self: Sized,
fn max(self, other: Self) -> Selfwhere
Self: Sized,
Compares and returns the maximum of two values. Read more
Source§impl PartialEq for RetrieveSettingError
impl PartialEq for RetrieveSettingError
Source§impl PartialOrd for RetrieveSettingError
impl PartialOrd for RetrieveSettingError
impl Eq for RetrieveSettingError
impl StructuralPartialEq for RetrieveSettingError
Auto Trait Implementations§
impl Freeze for RetrieveSettingError
impl RefUnwindSafe for RetrieveSettingError
impl Send for RetrieveSettingError
impl Sync for RetrieveSettingError
impl Unpin for RetrieveSettingError
impl UnwindSafe for RetrieveSettingError
Blanket Implementations§
Source§impl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
Source§fn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more