pub enum DescriptorSidecarError {
Show 30 variants
RelativeStagingDirectory(PathBuf),
ReadUnitsDirectory {
path: PathBuf,
source: Error,
},
NoUnitSidecars(PathBuf),
UnexpectedUnitsEntry(PathBuf),
ReadSidecar {
path: PathBuf,
source: Error,
},
ParseSidecar {
path: PathBuf,
source: Error,
},
UnsupportedSchema {
path: PathBuf,
actual: u16,
expected: u16,
},
InvalidUnitId {
path: PathBuf,
source: WrapperError,
},
DuplicateUnit(DescriptorCargoUnitId),
SidecarFilenameMismatch {
path: PathBuf,
expected: String,
},
NormalizedHashMismatch {
unit: DescriptorCargoUnitId,
actual: String,
},
InvalidRealizedEnvironmentHash {
unit: DescriptorCargoUnitId,
value: String,
reason: String,
},
InvalidLogicalEnvironmentHash {
unit: DescriptorCargoUnitId,
value: String,
reason: String,
},
InvalidOutDirPath {
unit: DescriptorCargoUnitId,
path: String,
reason: String,
},
OutDirDependenciesWithoutOutDir(DescriptorCargoUnitId),
InvalidOutDirDependencyPath {
unit: DescriptorCargoUnitId,
path: String,
reason: String,
},
InvalidOutDirDependencyHash {
unit: DescriptorCargoUnitId,
path: String,
value: String,
reason: String,
},
NonCanonicalOutDirDependencies(DescriptorCargoUnitId),
InvalidObservedInputs {
unit: DescriptorCargoUnitId,
reason: String,
},
InvalidPackageSourceClosureHash {
unit: DescriptorCargoUnitId,
value: String,
reason: String,
},
EmptyDependencyName(DescriptorCargoUnitId),
RelativeDependencyArtifact {
unit: DescriptorCargoUnitId,
extern_name: String,
path: PathBuf,
},
InvalidDependencyArtifactHash {
unit: DescriptorCargoUnitId,
extern_name: String,
value: String,
reason: String,
},
InvalidCargoExtraFilename {
unit: DescriptorCargoUnitId,
value: String,
reason: String,
},
ObjectPathMismatch {
unit: DescriptorCargoUnitId,
actual: String,
expected: String,
},
CodegenPolicyMismatch(DescriptorCargoUnitId),
InvalidDescriptorObjectHash {
unit: DescriptorCargoUnitId,
value: String,
reason: String,
},
ReadObject {
path: PathBuf,
source: Error,
},
ObjectHashMismatch {
unit: DescriptorCargoUnitId,
expected: String,
actual: String,
},
ObjectNotRegularFile(PathBuf),
}Expand description
Validation failure for one explicit descriptor staging directory.
Variants§
RelativeStagingDirectory(PathBuf)
The orchestrator must resolve staging before launching Cargo.
ReadUnitsDirectory
Unit enumeration failed.
NoUnitSidecars(PathBuf)
A successful descriptor invocation emitted no units.
UnexpectedUnitsEntry(PathBuf)
Fresh staging may contain only completed JSON sidecars.
ReadSidecar
Sidecar bytes could not be read.
ParseSidecar
Sidecar JSON could not be decoded.
UnsupportedSchema
Sidecar schema is stale or from a future wrapper.
InvalidUnitId
Unit ID text is malformed.
DuplicateUnit(DescriptorCargoUnitId)
Two sidecars claimed one unit.
SidecarFilenameMismatch
Filename and payload identity diverged.
NormalizedHashMismatch
The normalized-input checksum must equal the assigned unit ID.
InvalidRealizedEnvironmentHash
Realized generation identity must use canonical lowercase SHA-256.
Fields
unit: DescriptorCargoUnitIdAssigned unit.
InvalidLogicalEnvironmentHash
Cross-phase logical environment identity must be canonical SHA-256.
Fields
unit: DescriptorCargoUnitIdAssigned unit.
InvalidOutDirPath
OUT_DIR is stored relative to the orchestrator-owned target.
Fields
unit: DescriptorCargoUnitIdAssigned unit.
OutDirDependenciesWithoutOutDir(DescriptorCargoUnitId)
Generated dependencies require one matching OUT_DIR coordinate.
InvalidOutDirDependencyPath
Generated-source paths are strict portable relative paths.
Fields
unit: DescriptorCargoUnitIdAssigned unit.
InvalidOutDirDependencyHash
Generated-source hashes use canonical lowercase SHA-256.
Fields
unit: DescriptorCargoUnitIdAssigned unit.
NonCanonicalOutDirDependencies(DescriptorCargoUnitId)
Generated-source records are strictly sorted and unique.
InvalidObservedInputs
Exact dep-info/source/environment records failed closed validation.
InvalidPackageSourceClosureHash
Package closure identity must use the exact lowercase representation.
Fields
unit: DescriptorCargoUnitIdAssigned unit.
EmptyDependencyName(DescriptorCargoUnitId)
Rust extern names are required map keys.
RelativeDependencyArtifact
Cargo passes absolute artifact paths to rustc; relative coordinates cannot be joined safely to its JSON enumeration.
Fields
unit: DescriptorCargoUnitIdDescriptor unit.
InvalidDependencyArtifactHash
Wrapper-time dependency hashes must be canonical lowercase SHA-256.
Fields
unit: DescriptorCargoUnitIdDescriptor unit.
InvalidCargoExtraFilename
Cargo output discriminators must remain a single safe filename fragment.
Fields
unit: DescriptorCargoUnitIdAssigned unit.
ObjectPathMismatch
Descriptor object path is not the content-addressed wrapper path.
Fields
unit: DescriptorCargoUnitIdAssigned unit.
CodegenPolicyMismatch(DescriptorCargoUnitId)
Retention policy differs from the wrapper protocol.
InvalidDescriptorObjectHash
Wrapper/cache object hashes must use canonical lowercase SHA-256.
Fields
unit: DescriptorCargoUnitIdAssigned unit.
ReadObject
Exact object could not be read.
ObjectHashMismatch
Object content differs from the atomic sidecar.
Fields
unit: DescriptorCargoUnitIdAssigned unit.
ObjectNotRegularFile(PathBuf)
Skipping a byte rehash still requires a regular object file.
Trait Implementations§
Source§impl Debug for DescriptorSidecarError
impl Debug for DescriptorSidecarError
Source§impl Display for DescriptorSidecarError
impl Display for DescriptorSidecarError
Source§impl Error for DescriptorSidecarError
impl Error for DescriptorSidecarError
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 DescriptorSidecarError
impl !UnwindSafe for DescriptorSidecarError
impl Forget for DescriptorSidecarError
impl Freeze for DescriptorSidecarError
impl Move for DescriptorSidecarError
impl Send for DescriptorSidecarError
impl Sync for DescriptorSidecarError
impl Unpin for DescriptorSidecarError
impl UnsafeUnpin for DescriptorSidecarError
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