Skip to main content

DescriptorCargoRunError

Enum DescriptorCargoRunError 

Source
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.

Fields

§target: PathBuf

Exact target.

§exclusion: PathBuf

Exact excluded generated root.

§

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

§staging: PathBuf

Fresh invocation-local staging directory.

§exclusion: PathBuf

Exact excluded generated root.

§

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

§kind: &'static str

Managed output role.

§path: PathBuf

Rejected output root.

§anchor: PathBuf

Exact generated trust anchor.

§

UnsafeManagedDirectoryComponent

Existing descendants may not redirect generated writes through a symlink or special file.

Fields

§kind: &'static str

Managed output role.

§path: PathBuf

Unsafe existing component.

§

InspectManagedDirectory

Existing managed descendants could not be inspected safely.

Fields

§kind: &'static str

Managed output role.

§path: PathBuf

Component being inspected.

§source: Error

Filesystem failure.

§

OverlappingTargetAndStagingDirectories

Target and staging are independently deleted/replaced and therefore cannot contain one another.

Fields

§target: PathBuf

Persistent Cargo target.

§staging: PathBuf

Invocation-local staging directory.

§

UnsafeSourceExclusion

Excluding the Cargo working directory (or one of its ancestors) would erase actual package inputs from source-closure identity.

Fields

§exclusion: PathBuf

Exact normalized generated root.

§working: PathBuf

Exact normalized Cargo working directory.

§

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.

Fields

§path: PathBuf

Requested managed path.

§source: Error

Path normalization failure.

§

CreateTargetLockDirectory

The sibling target-lock directory could not be created or inspected.

Fields

§path: PathBuf

Lock directory.

§source: Error

I/O failure.

§

UnsafeTargetLock(PathBuf)

Symlinks and non-files are never accepted as target-lock entries.

§

OpenTargetLock

The target lock could not be opened.

Fields

§path: PathBuf

Exact lock file.

§source: Error

I/O failure.

§

AcquireTargetLock

Another descriptor invocation’s target lease could not be acquired.

Fields

§path: PathBuf

Exact lock file.

§source: Error

Lock failure.

§

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.

Fields

§path: PathBuf

Exact journal path.

§source: Error

I/O failure.

§

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.

Fields

§path: PathBuf

Exact target.

§source: Error

I/O failure.

§

ReadDescriptorTarget

Existing descriptor target state could not be inspected.

Fields

§path: PathBuf

Exact target.

§source: Error

I/O failure.

§

ReadDescriptorTargetMarker

Target ownership marker could not be read.

Fields

§path: PathBuf

Exact target.

§source: Error

I/O failure.

§

CreateDescriptorTargetMarker

Target ownership marker could not be durably created.

Fields

§path: PathBuf

Exact marker.

§source: Error

I/O failure.

§

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.

Fields

§path: PathBuf

Parent path.

§source: Error

I/O failure.

§

CreateStaging

Fresh staging creation failed.

Fields

§path: PathBuf

Fresh path.

§source: Error

I/O failure.

§

CreateStagingMarker

Fresh staging ownership marker could not be durably created.

Fields

§path: PathBuf

Fresh staging root.

§source: Error

I/O failure.

§

RecoveryStagingIo

A recovery attempt directory could not be created, inspected, or enumerated beneath the marker-owned staging root.

Fields

§operation: &'static str

Filesystem operation that failed.

§path: PathBuf

Exact recovery path.

§source: Error

I/O failure.

§

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.

Fields

§path: PathBuf

Exact invocation-local staging root.

§source: Error

I/O failure.

§

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.

Fields

§path: PathBuf

Exact invocation-local staging root.

§source: Error

I/O failure.

§

RemoveCompletedStaging

Exact marker-owned staging cleanup failed.

Fields

§path: PathBuf

Exact invocation-local staging root.

§source: Error

I/O failure.

§

SpawnCargo

Cargo could not be spawned.

Fields

§program: PathBuf

Program path.

§source: Error

Process failure.

§

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

Source§

fn fmt(&self, f: &mut Formatter<'_>) -> Result

Formats the value using the given formatter. Read more
Source§

impl Display for DescriptorCargoRunError

Source§

fn fmt(&self, __formatter: &mut Formatter<'_>) -> Result

Formats the value using the given formatter. Read more
Source§

impl Error for DescriptorCargoRunError

Source§

fn source(&self) -> Option<&(dyn Error + 'static)>

Returns the lower-level source of this error, if any. Read more
1.0.0 · Source§

fn description(&self) -> &str

👎Deprecated since 1.42.0:

use the Display impl or to_string()

1.0.0 · Source§

fn cause(&self) -> Option<&dyn Error>

👎Deprecated since 1.33.0:

replaced by Error::source, which can support downcasting

Source§

fn provide<'a>(&'a self, request: &mut Request<'a>)

🔬This is a nightly-only experimental API. (error_generic_member_access)
Provides type-based access to context intended for error reports. Read more

Auto Trait Implementations§

Blanket Implementations§

Source§

impl<T> Any for T
where T: 'static + ?Sized,

Source§

fn type_id(&self) -> TypeId

Gets the TypeId of self. Read more
Source§

impl<T> Borrow<T> for T
where T: ?Sized,

Source§

fn borrow(&self) -> &T

Immutably borrows from an owned value. Read more
Source§

impl<T> BorrowMut<T> for T
where T: ?Sized,

Source§

fn borrow_mut(&mut self) -> &mut T

Mutably borrows from an owned value. Read more
Source§

impl<T> From<T> for T

Source§

fn from(t: T) -> T

Returns the argument unchanged.

Source§

impl<T> Instrument for T

Source§

fn instrument(self, span: Span) -> Instrumented<Self> ⓘ

Instruments this type with the provided Span, returning an Instrumented wrapper. Read more
Source§

fn in_current_span(self) -> Instrumented<Self> ⓘ

Instruments this type with the current Span, returning an Instrumented wrapper. Read more
Source§

impl<T, U> Into<U> for T
where U: From<T>,

Source§

fn into(self) -> U

Calls U::from(self).

That is, this conversion is whatever the implementation of From<T> for U chooses to do.

Source§

impl<T> IntoEither for T

Source§

fn into_either(self, into_left: bool) -> Either<Self, Self> ⓘ

Converts 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 more
Source§

fn into_either_with<F>(self, into_left: F) -> Either<Self, Self> ⓘ
where F: FnOnce(&Self) -> bool,

Converts 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
Source§

impl<T> Pointable for T

Source§

const ALIGN: usize

The alignment of pointer.
Source§

type Init = T

The type for initializers.
Source§

unsafe fn init(init: <T as Pointable>::Init) -> usize

Initializes a with the given initializer. Read more
Source§

unsafe fn deref<'a>(ptr: usize) -> &'a T

Dereferences the given pointer. Read more
Source§

unsafe fn deref_mut<'a>(ptr: usize) -> &'a mut T

Mutably dereferences the given pointer. Read more
Source§

unsafe fn drop(ptr: usize)

Drops the object pointed to by the given pointer. Read more
Source§

impl<T> PolicyExt for T
where T: ?Sized,

Source§

fn and<P, B, E>(self, other: P) -> And<T, P>
where T: Sized + Policy<B, E>, P: Policy<B, E>,

Create a new Policy that returns Action::Follow only if self and other return Action::Follow. Read more
Source§

fn or<P, B, E>(self, other: P) -> Or<T, P>
where T: Sized + Policy<B, E>, P: Policy<B, E>,

Create a new Policy that returns Action::Follow if either self or other returns Action::Follow. Read more
Source§

impl<T> Same for T

Source§

type Output = T

Should always be Self
Source§

impl<T> ToString for T
where T: Display + ?Sized,

Source§

fn to_string(&self) -> String

Converts the given value to a String. Read more
Source§

impl<T, U> TryFrom<U> for T
where U: Into<T>,

Source§

type Error = !

The type returned in the event of a conversion error.
Source§

fn try_from(value: U) -> Result<T, !>

Performs the conversion.
Source§

impl<T, U> TryInto<U> for T
where U: TryFrom<T>,

Source§

type Error = <U as TryFrom<T>>::Error

The type returned in the event of a conversion error.
Source§

fn try_into(self) -> Result<U, <U as TryFrom<T>>::Error>

Performs the conversion.
Source§

impl<T> WithSubscriber for T

Source§

fn with_subscriber<S>(self, subscriber: S) -> WithDispatch<Self> ⓘ
where S: Into<Dispatch>,

Attaches the provided Subscriber to this type, returning a WithDispatch wrapper. Read more
Source§

fn with_current_subscriber(self) -> WithDispatch<Self> ⓘ

Attaches the current default Subscriber to this type, returning a WithDispatch wrapper. Read more