#[non_exhaustive]pub enum ResolutionErrorV2 {
SettingsWithoutSelection,
UnknownProfile(ProfileSelection),
UnknownSetting {
key: String,
location: SettingLocation,
},
WrongScope {
setting: SettingIdV2,
expected: SettingScope,
found: SettingScope,
location: SettingLocation,
},
InvalidSettingValue {
setting: SettingIdV2,
expected: SettingDomainV2,
location: SettingLocation,
},
MissingRequiredSetting {
setting: SettingIdV2,
location: SettingLocation,
},
UnacceptedInputFormat {
selection: ProfileSelection,
format: SourceFormatV1,
},
}Expand description
Typed failure from revision-2 settings resolution.
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.
SettingsWithoutSelection
Settings were declared without selecting an engine profile.
UnknownProfile(ProfileSelection)
No exact revision-2 registry tuple matches the selection.
UnknownSetting
A setting key is absent from the selected profile.
WrongScope
A known setting was declared in the wrong scope.
Fields
§
setting: SettingIdV2Stable setting id.
§
expected: SettingScopeDescriptor scope.
§
found: SettingScopeSupplied scope.
§
location: SettingLocationDeclaration location.
InvalidSettingValue
A value variant does not match its descriptor’s closed domain.
Fields
§
setting: SettingIdV2Stable setting id.
§
expected: SettingDomainV2Required descriptor domain.
§
location: SettingLocationDeclaration location.
MissingRequiredSetting
One required-explicit setting was not materialized.
Fields
§
setting: SettingIdV2Stable setting id.
§
location: SettingLocationDocument or exact clip location.
UnacceptedInputFormat
The authoritative input container is outside the exact profile.
Fields
§
selection: ProfileSelectionSelected exact profile tuple.
§
format: SourceFormatV1Authoritative source format.
Trait Implementations§
Source§impl Clone for ResolutionErrorV2
impl Clone for ResolutionErrorV2
Source§fn clone(&self) -> ResolutionErrorV2
fn clone(&self) -> ResolutionErrorV2
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 ResolutionErrorV2
impl Debug for ResolutionErrorV2
Source§impl Display for ResolutionErrorV2
impl Display for ResolutionErrorV2
impl Eq for ResolutionErrorV2
Source§impl Error for ResolutionErrorV2
impl Error for ResolutionErrorV2
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 ResolutionErrorV2
impl PartialEq for ResolutionErrorV2
impl StructuralPartialEq for ResolutionErrorV2
Auto Trait Implementations§
impl Freeze for ResolutionErrorV2
impl RefUnwindSafe for ResolutionErrorV2
impl Send for ResolutionErrorV2
impl Sync for ResolutionErrorV2
impl Unpin for ResolutionErrorV2
impl UnsafeUnpin for ResolutionErrorV2
impl UnwindSafe for ResolutionErrorV2
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