#[non_exhaustive]pub enum SettingOperationError {
NotApplicable {
setting: SettingId,
target: SettingTarget,
},
NotFound {
setting: SettingId,
target: SettingTarget,
},
ApplicabilityUnknown {
setting: SettingId,
target: Box<SettingTarget>,
},
WrongValueKind {
setting: SettingId,
expected: &'static str,
actual: &'static str,
span: Option<Span>,
},
InvalidValue {
setting: SettingId,
message: String,
span: Option<Span>,
},
SourceUnavailable {
setting: SettingId,
},
SourceMismatch,
}Expand description
Failure from a typed settings query or source-preserving edit.
Variants (Non-exhaustive)§
This enum is marked as non-exhaustive
Non-exhaustive enums could have additional variants added in future. Therefore, when matching against variants of non-exhaustive enums, an extra wildcard arm must be added to account for any future variants.
Trait Implementations§
Source§impl Clone for SettingOperationError
impl Clone for SettingOperationError
Source§impl Debug for SettingOperationError
impl Debug for SettingOperationError
Source§impl Display for SettingOperationError
impl Display for SettingOperationError
Source§impl Error for SettingOperationError
impl Error for SettingOperationError
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 PartialEq for SettingOperationError
impl PartialEq for SettingOperationError
impl StructuralPartialEq for SettingOperationError
Auto Trait Implementations§
impl Freeze for SettingOperationError
impl RefUnwindSafe for SettingOperationError
impl Send for SettingOperationError
impl Sync for SettingOperationError
impl Unpin for SettingOperationError
impl UnsafeUnpin for SettingOperationError
impl UnwindSafe for SettingOperationError
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