pub enum FinalUnitMapError {
Show 20 variants
RelativeDirectory(PathBuf),
InvalidPlanFileHash {
value: String,
reason: String,
},
UnitIdMismatch {
validated: String,
sidecar: String,
},
MissingCoordinateField {
unit: String,
field: &'static str,
},
InvalidProfileFingerprint {
unit: String,
value: String,
reason: String,
},
InvalidCargoExtraFilename {
unit: String,
value: String,
reason: String,
},
RelativeManifestPath {
unit: String,
path: PathBuf,
},
NonCanonicalCoordinateValues {
unit: String,
field: &'static str,
},
ReservedDescriptorCfg {
unit: String,
},
FeatureCfgMismatch {
unit: String,
features: Vec<String>,
derived: Vec<String>,
},
InvalidSourceHash {
unit: String,
value: String,
reason: String,
},
InvalidPackageSourceClosureHash {
unit: String,
value: String,
reason: String,
},
InvalidLogicalEnvironmentHash {
unit: String,
value: String,
reason: String,
},
AmbiguousCoordinate {
coordinate: FinalUnitCoordinate,
first: String,
second: String,
},
Serialize(Error),
PathWithoutParent(PathBuf),
CreateDirectory {
path: PathBuf,
source: Error,
},
InvalidFilename(PathBuf),
Write {
path: PathBuf,
source: Error,
},
ConflictingContent(PathBuf),
}Expand description
Failure to build a phase-invariant final unit map.
Variants§
RelativeDirectory(PathBuf)
Output location must not depend on the process cwd.
InvalidPlanFileHash
The exact tagged linked-plan hash was malformed.
UnitIdMismatch
A validated wrapper identity and its sidecar diverged.
MissingCoordinateField
A required Cargo coordinate was not recorded.
InvalidProfileFingerprint
Profile matching requires one exact phase-invariant fingerprint.
Fields
InvalidCargoExtraFilename
The Cargo rustc output discriminator was malformed.
Fields
RelativeManifestPath
Manifest paths are exact host-local join coordinates.
NonCanonicalCoordinateValues
Set-valued sidecar coordinates must already be canonical.
ReservedDescriptorCfg
Descriptor inputs may not claim final-only cfgs.
FeatureCfgMismatch
Feature and cfg views must describe the same Cargo unit.
Fields
InvalidSourceHash
Source content identity must use the exact lowercase representation.
InvalidPackageSourceClosureHash
Package closure identity must use the exact lowercase representation.
InvalidLogicalEnvironmentHash
Cross-phase logical environment identity must be lowercase SHA-256.
AmbiguousCoordinate
Two descriptor units cannot be selected by one final coordinate.
Fields
coordinate: FinalUnitCoordinateAmbiguous semantic coordinate.
Serialize(Error)
JSON serialization failed.
PathWithoutParent(PathBuf)
A content-addressed path must have a parent.
CreateDirectory
Content-addressed directory creation failed.
InvalidFilename(PathBuf)
Content-addressed file name must be valid UTF-8.
Write
Atomic write failed.
ConflictingContent(PathBuf)
A same-hash path contained other bytes.
Trait Implementations§
Source§impl Debug for FinalUnitMapError
impl Debug for FinalUnitMapError
Source§impl Display for FinalUnitMapError
impl Display for FinalUnitMapError
Source§impl Error for FinalUnitMapError
impl Error for FinalUnitMapError
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()
Auto Trait Implementations§
impl !RefUnwindSafe for FinalUnitMapError
impl !UnwindSafe for FinalUnitMapError
impl Freeze for FinalUnitMapError
impl Send for FinalUnitMapError
impl Sync for FinalUnitMapError
impl Unpin for FinalUnitMapError
impl UnsafeUnpin for FinalUnitMapError
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> Instrument for T
impl<T> Instrument for T
Source§fn instrument(self, span: Span) -> Instrumented<Self> ⓘ
fn instrument(self, span: Span) -> Instrumented<Self> ⓘ
Source§fn in_current_span(self) -> Instrumented<Self> ⓘ
fn in_current_span(self) -> Instrumented<Self> ⓘ
Source§impl<T> IntoEither for T
impl<T> IntoEither for T
Source§fn into_either(self, into_left: bool) -> Either<Self, Self> ⓘ
fn into_either(self, into_left: bool) -> Either<Self, Self> ⓘ
self into a Left variant of Either<Self, Self>
if into_left is true.
Converts self into a Right variant of Either<Self, Self>
otherwise. Read moreSource§fn into_either_with<F>(self, into_left: F) -> Either<Self, Self> ⓘ
fn into_either_with<F>(self, into_left: F) -> Either<Self, Self> ⓘ
self into a Left variant of Either<Self, Self>
if into_left(&self) returns true.
Converts self into a Right variant of Either<Self, Self>
otherwise. Read more