pub enum ExplainError {
PackageNotFound {
name: String,
candidates: Vec<String>,
},
AmbiguousPackageName {
name: String,
versions: Vec<String>,
},
TargetNotFound {
name: String,
candidates: Vec<String>,
},
AmbiguousTargetName {
name: String,
owners: Vec<String>,
},
InvalidFeatureQuery {
query: String,
},
FeatureNotFound {
package: String,
feature: String,
candidates: Vec<String>,
},
NoBuildConfiguration {
name: String,
},
}Expand description
Errors produced by the explain queries. Wording is stable so integration tests can match on substrings.
Variants§
PackageNotFound
The named package is not in the resolved graph.
AmbiguousPackageName
More than one package shares the same name. This is rejected by the resolver today, but the variant is retained so future graph changes have a clear failure mode.
TargetNotFound
The named target does not exist in any package the user selected.
AmbiguousTargetName
Multiple selected packages declare a target with the same name.
InvalidFeatureQuery
cabin explain feature <package/feature> query string
did not contain a / separator.
FeatureNotFound
The named feature does not exist on the named package.
NoBuildConfiguration
The orchestration layer did not compute a build configuration for this package. Today this happens only when the user asks about a package outside the selected closure.
Trait Implementations§
Source§impl Debug for ExplainError
impl Debug for ExplainError
Source§impl Display for ExplainError
impl Display for ExplainError
Source§impl Error for ExplainError
impl Error for ExplainError
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()