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>,
},
}Expand description
Failure from a typed settings query or source-preserving edit.
Variants§
Trait Implementations§
Source§impl Clone for SettingOperationError
impl Clone for SettingOperationError
Source§fn clone(&self) -> SettingOperationError
fn clone(&self) -> SettingOperationError
Returns a duplicate of the value. Read more
1.0.0 (const: unstable) · 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 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