#[non_exhaustive]pub enum ProfileError {
Show 21 variants
NoProfiles {
location: String,
},
NotInSource {
location: String,
name: ProfileName,
profiles: Vec<ProfileName>,
},
SameNameInSource {
location: String,
name: ProfileName,
first: String,
second: String,
},
Manifest {
file: String,
message: String,
},
Incompatible {
profile: ProfileName,
requires: String,
},
MissingPayload {
profile: ProfileName,
path: RelPath,
},
UnknownFeature {
profile: ProfileName,
feature: FeatureName,
by: String,
known: Vec<FeatureName>,
},
SamePath {
profile: ProfileName,
path: RelPath,
first: RelPath,
second: RelPath,
},
Pattern {
profile: ProfileName,
pattern: String,
reason: String,
},
Collision {
path: RelPath,
layers: Vec<ProfileName>,
},
Starters {
path: RelPath,
layers: Vec<ProfileName>,
},
NotProvided {
path: RelPath,
from: ProfileName,
layers: Vec<ProfileName>,
},
FoldCollision {
first: RelPath,
second: RelPath,
},
Cycle {
chain: Vec<ProfileName>,
},
Diverged {
first: String,
second: String,
},
NoKeys {
path: RelPath,
},
NoComment {
path: RelPath,
},
Overlap {
path: RelPath,
key: String,
first: ProfileName,
second: ProfileName,
},
Scopes {
path: RelPath,
layers: Vec<(ProfileName, Scope)>,
},
SameName {
name: ProfileName,
first: String,
second: String,
},
Setting {
key: String,
first: ProfileName,
second: ProfileName,
},
}Expand description
Why a profile, or the layers together, do not resolve.
Variants (Non-exhaustive)§
This enum is marked as non-exhaustive
NoProfiles
A source holds no profile at all.
NotInSource
A source holds no profile of the name asked for.
SameNameInSource
Two profiles in one source have one name, which must tell them apart.
Fields
name: ProfileNameThe name.
Manifest
A manifest says something of itself that does not hold.
Incompatible
The profile’s devset requirement excludes this build.
MissingPayload
[files] lists a path, or a starter, that files/ does not hold.
UnknownFeature
A profile is asked for a feature it does not declare.
Fields
profile: ProfileNameThe profile.
feature: FeatureNameThe feature asked for.
known: Vec<FeatureName>Every feature it declares.
SamePath
Two of a profile’s paths name one file once their variables are answered.
Fields
profile: ProfileNameThe profile.
Pattern
A path, or a glob, in when.exists or a scaffold’s unless cannot be read.
Fields
profile: ProfileNameThe profile.
Collision
Several layers provide one path, and the target has not chosen.
Starters
Several layers would start one file the target lacks, and the target has not chosen.
NotProvided
An override’s from names a layer that does not list the path.
FoldCollision
Two paths name one file on a case-insensitive filesystem.
Cycle
Requirements lead back to a profile that requires them.
Fields
chain: Vec<ProfileName>Each profile on the way round, the repeated one last.
Diverged
One profile is required at two refs, which would provide one set of files twice.
NoKeys
Keys are owned in a file devset does not read as TOML, JSON or YAML.
NoComment
A block is owned in a file whose comment syntax devset does not know.
Overlap
Two layers own overlapping keys of one file.
Scopes
Layers own one file in different scopes: one whole and another in part, or one by keys
and another by a block. A whole once file may start one that others own parts of.
SameName
Two active profiles have one name, which must tell layers apart.
Fields
name: ProfileNameThe name.
Setting
Two layers set one setting differently, and the target does not decide.
Trait Implementations§
Source§impl Clone for ProfileError
impl Clone for ProfileError
Source§impl Debug for ProfileError
impl Debug for ProfileError
Source§impl Display for ProfileError
impl Display for ProfileError
impl Eq for ProfileError
Source§impl Error for ProfileError
impl Error for ProfileError
1.30.0 · Source§fn source(&self) -> Option<&(dyn Error + 'static)>
fn source(&self) -> Option<&(dyn Error + 'static)>
1.0.0 · Source§fn description(&self) -> &str
fn description(&self) -> &str
use the Display impl or to_string()
Source§impl From<ProfileError> for Error
impl From<ProfileError> for Error
Source§fn from(source: ProfileError) -> Self
fn from(source: ProfileError) -> Self
Source§impl PartialEq for ProfileError
impl PartialEq for ProfileError
impl StructuralPartialEq for ProfileError
Auto Trait Implementations§
impl Freeze for ProfileError
impl RefUnwindSafe for ProfileError
impl Send for ProfileError
impl Sync for ProfileError
impl Unpin for ProfileError
impl UnsafeUnpin for ProfileError
impl UnwindSafe for ProfileError
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
Source§impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
Source§impl<Q, K> Equivalent<K> for Q
impl<Q, K> Equivalent<K> for Q
Source§impl<Q, K> Equivalent<K> for Q
impl<Q, K> Equivalent<K> for Q
Source§fn equivalent(&self, key: &K) -> bool
fn equivalent(&self, key: &K) -> bool
key and return true if they are equal.