#[non_exhaustive]pub enum LinkedCargoError {
Show 43 variants
MissingDescriptorCargoArguments,
RelativePlanDirectory(PathBuf),
RelativeFinalTargetRoot(PathBuf),
MissingFinalCargoArguments,
DescriptorRuntimeArguments,
UnsupportedPhaseSubcommands {
descriptor: OsString,
final_phase: OsString,
},
UnsupportedFinalRuntimeArguments(OsString),
InvalidTestPhaseNoRun,
PhaseCargoArgumentsMismatch {
descriptor: Vec<OsString>,
final_phase: Vec<OsString>,
},
PhaseEnvironmentMismatch {
names: Vec<OsString>,
},
ManagedDirectoryOverlap {
first_kind: &'static str,
first: PathBuf,
second_kind: &'static str,
second: PathBuf,
},
ManagedPath(ManagedPathError),
DescriptorManagedPaths(DescriptorCargoRunError),
NormalizeManagedDirectory {
kind: &'static str,
path: PathBuf,
source: Error,
},
EmptyRootSelector(&'static str),
NonRootRole(ArtifactRole),
DescriptorCargo(DescriptorCargoRunError),
DescriptorStagingCleanup(DescriptorCargoRunError),
DescriptorCache(DescriptorCacheError),
JoinDescriptorArtifacts(UnitArtifactJoinError),
MissingRoot {
package_id: String,
target_name: String,
},
AmbiguousRoot {
package_id: String,
target_name: String,
matches: usize,
},
MissingFinalRoot {
package_id: String,
target_name: String,
},
AmbiguousFinalRoot {
package_id: String,
target_name: String,
matches: usize,
},
FinalRootCoordinateMismatch {
package_id: String,
target_name: String,
},
MissingFinalRootExecutable {
package_id: String,
target_name: String,
},
FinalRootHasNoArtifact,
InspectFinalRootArtifact {
path: PathBuf,
source: Error,
},
FinalRootArtifactNotFile(PathBuf),
FinalRootNotHostExecutable {
package_id: String,
target_name: String,
},
FinalRootManifestWithoutParent(PathBuf),
ExecuteFinalRoot {
path: PathBuf,
source: Error,
},
FinalRootExited {
path: PathBuf,
status: ExitStatus,
},
RelativeRootArtifact(PathBuf),
RootArtifactNotEnumerated(PathBuf),
RootHasNoArtifact,
AmbiguousRootArtifact {
matches: usize,
},
LinkManifest(LinkManifestAssemblyError),
TransportLink(TransportLinkError),
AbiAdapter(AbiAdapterError),
SemanticLink(SemanticLinkError),
WriteSemanticPlan(SemanticPlanWriteError),
FinalCargo(FinalCargoError),
}Expand description
End-to-end orchestration failure.
Variants (Non-exhaustive)§
This enum is marked as non-exhaustive
MissingDescriptorCargoArguments
Descriptor Cargo must receive an explicit subcommand/selection too.
RelativePlanDirectory(PathBuf)
Plan storage must be cwd-independent.
RelativeFinalTargetRoot(PathBuf)
Final artifacts live in an invocation- and wrapper-policy-scoped absolute namespace.
MissingFinalCargoArguments
Final Cargo must receive an explicit subcommand/selection.
DescriptorRuntimeArguments
Descriptor compilation may never execute a selected program.
UnsupportedPhaseSubcommands
Only the lifecycle’s known phase pairs preserve one Cargo unit model.
Fields
UnsupportedFinalRuntimeArguments(OsString)
Runtime arguments are meaningful only for final run/test invocations.
InvalidTestPhaseNoRun
Tests compile without execution in the descriptor phase. The final phase may return a harness for a caller to launch with runtime setup.
PhaseCargoArgumentsMismatch
After the controlled phase rewrite, every Cargo selection/config input must be byte-for-byte identical.
Fields
PhaseEnvironmentMismatch
Caller-supplied compilation environment must be frozen across phases.
ManagedDirectoryOverlap
Every generated namespace is a separate identity/deletion boundary.
Fields
ManagedPath(ManagedPathError)
Managed output confinement or plain-entry validation failed.
DescriptorManagedPaths(DescriptorCargoRunError)
Descriptor path relationships must be validated before any linked namespace is created.
NormalizeManagedDirectory
Cross-subsystem comparisons use one canonical managed-path identity.
Fields
EmptyRootSelector(&'static str)
Root selection fields are exact and nonempty.
NonRootRole(ArtifactRole)
A dependency role cannot be selected as a root.
DescriptorCargo(DescriptorCargoRunError)
Descriptor Cargo failed.
DescriptorStagingCleanup(DescriptorCargoRunError)
A fully successful uncached run could not remove only its exact, marker-owned invocation staging tree.
DescriptorCache(DescriptorCacheError)
Persistent descriptor reuse failed closed.
JoinDescriptorArtifacts(UnitArtifactJoinError)
Wrapper sidecars could not be joined to this invocation’s Cargo messages.
MissingRoot
The exact selected Cargo root did not exist.
AmbiguousRoot
More than one unit matched an exact root selector.
Fields
MissingFinalRoot
Final Cargo must emit the exact root selected from descriptor Cargo.
AmbiguousFinalRoot
One exact root selection must remain unique in the final phase.
Fields
FinalRootCoordinateMismatch
Profile, features, manifest, and target metadata are part of root identity across phases.
MissingFinalRootExecutable
Executable roots must remain executable roots in the final phase.
FinalRootHasNoArtifact
A final check root still needs one Cargo-enumerated materialized file.
InspectFinalRootArtifact
Final root output inspection failed.
FinalRootArtifactNotFile(PathBuf)
Cargo-enumerated final root material must be an ordinary file.
FinalRootNotHostExecutable
Run/test requests require a directly host-executable attested root.
FinalRootManifestWithoutParent(PathBuf)
Cargo manifest paths must identify the test package directory.
ExecuteFinalRoot
The attested executable could not be launched directly.
FinalRootExited
User programs and test harnesses propagate a nonzero result.
RelativeRootArtifact(PathBuf)
Caller-supplied artifact paths must be exact absolute Cargo paths.
RootArtifactNotEnumerated(PathBuf)
Caller-supplied root path was not in the matching Cargo message.
RootHasNoArtifact
Cargo published no usable root artifact.
AmbiguousRootArtifact
Automatic root-filename selection is intentionally fail-closed.
LinkManifest(LinkManifestAssemblyError)
Exact external root graph assembly failed.
TransportLink(TransportLinkError)
Object extraction/relocation resolution failed.
AbiAdapter(AbiAdapterError)
Legacy producer data could not become canonical ABI.
SemanticLink(SemanticLinkError)
Canonical graph/owner linking failed.
WriteSemanticPlan(SemanticPlanWriteError)
Semantic plan persistence failed.
FinalCargo(FinalCargoError)
Plan-sensitive final compilation failed.
Trait Implementations§
Source§impl Debug for LinkedCargoError
impl Debug for LinkedCargoError
Source§impl Display for LinkedCargoError
impl Display for LinkedCargoError
Source§impl Error for LinkedCargoError
impl Error for LinkedCargoError
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()
Source§impl From<ManagedPathError> for LinkedCargoError
impl From<ManagedPathError> for LinkedCargoError
Source§fn from(source: ManagedPathError) -> LinkedCargoError
fn from(source: ManagedPathError) -> LinkedCargoError
Auto Trait Implementations§
impl !RefUnwindSafe for LinkedCargoError
impl !UnwindSafe for LinkedCargoError
impl Forget for LinkedCargoError
impl Freeze for LinkedCargoError
impl Move for LinkedCargoError
impl Send for LinkedCargoError
impl Sync for LinkedCargoError
impl Unpin for LinkedCargoError
impl UnsafeUnpin for LinkedCargoError
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