pub enum DescriptorCargoRunError {
Show 54 variants
RelativeWrapper(PathBuf),
RelativeWorkingDirectory(PathBuf),
RelativeStagingDirectory(PathBuf),
RelativeTargetDirectory(PathBuf),
RelativeSourceExclusionDirectory(PathBuf),
TargetOutsideSourceExclusion {
target: PathBuf,
exclusion: PathBuf,
},
StagingOutsideSourceExclusion {
staging: PathBuf,
exclusion: PathBuf,
},
AmbiguousManagedDirectory(PathBuf),
ManagedDirectoryNotLexicallyContained {
kind: &'static str,
path: PathBuf,
anchor: PathBuf,
},
UnsafeManagedDirectoryComponent {
kind: &'static str,
path: PathBuf,
},
InspectManagedDirectory {
kind: &'static str,
path: PathBuf,
source: Error,
},
OverlappingTargetAndStagingDirectories {
target: PathBuf,
staging: PathBuf,
},
UnsafeSourceExclusion {
exclusion: PathBuf,
working: PathBuf,
},
TargetLockWithoutParent(PathBuf),
NonUtf8TargetLock(PathBuf),
NormalizeManagedDirectory {
path: PathBuf,
source: Error,
},
CreateTargetLockDirectory {
path: PathBuf,
source: Error,
},
UnsafeTargetLock(PathBuf),
OpenTargetLock {
path: PathBuf,
source: Error,
},
AcquireTargetLock {
path: PathBuf,
source: Error,
},
CachedCrashJournalRequiresRecovery(PathBuf),
UnsafeTargetJournal(PathBuf),
ReadTargetJournal {
path: PathBuf,
source: Error,
},
MissingCargoArguments,
ReservedCargoArgument(OsString),
ReservedEnvironment(OsString),
UnsupportedEnvironment(&'static str),
UnownedDescriptorTarget(PathBuf),
DescriptorTargetNotDirectory(PathBuf),
CreateDescriptorTarget {
path: PathBuf,
source: Error,
},
ReadDescriptorTarget {
path: PathBuf,
source: Error,
},
ReadDescriptorTargetMarker {
path: PathBuf,
source: Error,
},
CreateDescriptorTargetMarker {
path: PathBuf,
source: Error,
},
ExistingWorkspaceWrapper,
ExistingRustcWrapper,
StagingAlreadyExists(PathBuf),
StagingWithoutParent(PathBuf),
CreateStagingParent {
path: PathBuf,
source: Error,
},
CreateStaging {
path: PathBuf,
source: Error,
},
CreateStagingMarker {
path: PathBuf,
source: Error,
},
RecoveryStagingIo {
operation: &'static str,
path: PathBuf,
source: Error,
},
UnexpectedRecoveryStagingEntry(PathBuf),
ReadCompletedStagingMarker {
path: PathBuf,
source: Error,
},
UnownedCompletedStaging(PathBuf),
UnsafeCompletedStaging(PathBuf),
InspectCompletedStaging {
path: PathBuf,
source: Error,
},
RemoveCompletedStaging {
path: PathBuf,
source: Error,
},
SpawnCargo {
program: PathBuf,
source: Error,
},
MissingCargoStdout,
ReadCargoStdout(Error),
WaitForCargo(Error),
CargoFailed(ExitStatus),
CargoProtocol(CargoMessageError),
Sidecars(DescriptorSidecarError),
}Expand description
Descriptor Cargo process/orchestration failure.
Variants§
RelativeWrapper(PathBuf)
Wrapper path is not invocation-stable.
RelativeWorkingDirectory(PathBuf)
Cargo working directory must be explicit.
RelativeStagingDirectory(PathBuf)
Staging path must be explicit.
RelativeTargetDirectory(PathBuf)
Descriptor target is an exact deletion/recovery boundary.
RelativeSourceExclusionDirectory(PathBuf)
Generated source exclusion must be explicit and phase invariant.
TargetOutsideSourceExclusion
Exact descriptor output must be contained by the generated subtree.
StagingOutsideSourceExclusion
Invocation staging is generated state too; allowing it inside a package’s hashed source tree makes later unit identities depend on compile order and stale sidecars.
Fields
AmbiguousManagedDirectory(PathBuf)
Managed deletion/identity boundaries must have one unambiguous lexical spelling before filesystem canonicalization.
ManagedDirectoryNotLexicallyContained
Managed outputs must be lexical descendants of the exact generated root as well as canonical descendants of it.
Fields
UnsafeManagedDirectoryComponent
Existing descendants may not redirect generated writes through a symlink or special file.
InspectManagedDirectory
Existing managed descendants could not be inspected safely.
Fields
OverlappingTargetAndStagingDirectories
Target and staging are independently deleted/replaced and therefore cannot contain one another.
UnsafeSourceExclusion
Excluding the Cargo working directory (or one of its ancestors) would erase actual package inputs from source-closure identity.
Fields
TargetLockWithoutParent(PathBuf)
A normalized target must retain a filesystem parent for its sibling lock namespace.
NonUtf8TargetLock(PathBuf)
The lock identity must be portable canonical UTF-8 rather than a lossy rendering of an OS path.
NormalizeManagedDirectory
Canonical managed-directory identity could not be resolved safely.
CreateTargetLockDirectory
The sibling target-lock directory could not be created or inspected.
UnsafeTargetLock(PathBuf)
Symlinks and non-files are never accepted as target-lock entries.
OpenTargetLock
The target lock could not be opened.
AcquireTargetLock
Another descriptor invocation’s target lease could not be acquired.
CachedCrashJournalRequiresRecovery(PathBuf)
Only the cached runner has enough authority to reconcile a cached crash journal with immutable generations and pointer commits.
UnsafeTargetJournal(PathBuf)
A target crash journal may not be redirected or replaced by a special filesystem entry.
ReadTargetJournal
The target crash journal could not be inspected while holding the canonical target lease.
MissingCargoArguments
No Cargo subcommand/selection was supplied.
ReservedCargoArgument(OsString)
The runner owns Cargo’s JSON protocol.
ReservedEnvironment(OsString)
Wrapper-control variables belong exclusively to cargo-proa.
UnsupportedEnvironment(&'static str)
Proc-macro filesystem fallbacks are not part of exact build identity.
UnownedDescriptorTarget(PathBuf)
Existing nonempty directories cannot be silently claimed for recovery.
DescriptorTargetNotDirectory(PathBuf)
The target path must be a directory.
CreateDescriptorTarget
Descriptor target creation failed.
ReadDescriptorTarget
Existing descriptor target state could not be inspected.
ReadDescriptorTargetMarker
Target ownership marker could not be read.
CreateDescriptorTargetMarker
Target ownership marker could not be durably created.
ExistingWorkspaceWrapper
Existing wrappers are not represented by the current identity model.
ExistingRustcWrapper
An inherited wrapper is outside the descriptor/final cache identity.
StagingAlreadyExists(PathBuf)
Ordinary invocations cannot reuse staging; cached crash recovery uses a separate marker-validated path that revalidates every retained record.
StagingWithoutParent(PathBuf)
Staging root has no parent.
CreateStagingParent
Staging parent creation failed.
CreateStaging
Fresh staging creation failed.
CreateStagingMarker
Fresh staging ownership marker could not be durably created.
RecoveryStagingIo
A recovery attempt directory could not be created, inspected, or enumerated beneath the marker-owned staging root.
Fields
UnexpectedRecoveryStagingEntry(PathBuf)
Recovery attempts accept only strict runner-named plain directories.
ReadCompletedStagingMarker
Successful cleanup requires the descriptor runner’s exact ownership marker to remain readable.
UnownedCompletedStaging(PathBuf)
A successful linked run cannot delete staging it cannot prove it owns.
UnsafeCompletedStaging(PathBuf)
The marker-bearing staging root must still be a plain directory.
InspectCompletedStaging
The completed staging root could not be inspected after marker validation.
RemoveCompletedStaging
Exact marker-owned staging cleanup failed.
SpawnCargo
Cargo could not be spawned.
MissingCargoStdout
Piped Cargo stdout was unexpectedly unavailable.
ReadCargoStdout(Error)
Cargo JSON stream could not be read.
WaitForCargo(Error)
Cargo process wait failed.
CargoFailed(ExitStatus)
Cargo exited unsuccessfully.
CargoProtocol(CargoMessageError)
Cargo’s JSON stream was malformed or incomplete.
Sidecars(DescriptorSidecarError)
Wrapper outputs did not validate.
Trait Implementations§
Source§impl Debug for DescriptorCargoRunError
impl Debug for DescriptorCargoRunError
Source§impl Display for DescriptorCargoRunError
impl Display for DescriptorCargoRunError
Source§impl Error for DescriptorCargoRunError
impl Error for DescriptorCargoRunError
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 DescriptorCargoRunError
impl !UnwindSafe for DescriptorCargoRunError
impl Forget for DescriptorCargoRunError
impl Freeze for DescriptorCargoRunError
impl Move for DescriptorCargoRunError
impl Send for DescriptorCargoRunError
impl Sync for DescriptorCargoRunError
impl Unpin for DescriptorCargoRunError
impl UnsafeUnpin for DescriptorCargoRunError
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