Skip to main content

LinkedCargoError

Enum LinkedCargoError 

Source
#[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
Non-exhaustive enums could have additional variants added in future. Therefore, when matching against variants of non-exhaustive enums, an extra wildcard arm must be added to account for any future variants.
§

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

§descriptor: OsString

Descriptor-pass Cargo subcommand.

§final_phase: OsString

Final-pass Cargo subcommand.

§

UnsupportedFinalRuntimeArguments(OsString)

Runtime arguments are meaningful only for final run/test invocations.

§

InvalidTestPhaseNoRun

Tests compile without execution in the descriptor phase and execute only in the final phase.

§

PhaseCargoArgumentsMismatch

After the controlled phase rewrite, every Cargo selection/config input must be byte-for-byte identical.

Fields

§descriptor: Vec<OsString>

Normalized descriptor arguments.

§final_phase: Vec<OsString>

Normalized final arguments.

§

PhaseEnvironmentMismatch

Caller-supplied compilation environment must be frozen across phases.

Fields

§names: Vec<OsString>

Names only; potentially secret values are never included.

§

ManagedDirectoryOverlap

Every generated namespace is a separate identity/deletion boundary.

Fields

§first_kind: &'static str

First managed namespace role.

§first: PathBuf

First managed namespace root.

§second_kind: &'static str

Second managed namespace role.

§second: PathBuf

Second managed namespace root.

§

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

§kind: &'static str

Managed namespace role.

§path: PathBuf

Caller-supplied path.

§source: Error

Canonicalization failure.

§

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.

Fields

§package_id: String

Exact package ID.

§target_name: String

Exact target name.

§

AmbiguousRoot

More than one unit matched an exact root selector.

Fields

§package_id: String

Exact package ID.

§target_name: String

Exact target name.

§matches: usize

Candidate count.

§

MissingFinalRoot

Final Cargo must emit the exact root selected from descriptor Cargo.

Fields

§package_id: String

Exact package ID.

§target_name: String

Exact target name.

§

AmbiguousFinalRoot

One exact root selection must remain unique in the final phase.

Fields

§package_id: String

Exact package ID.

§target_name: String

Exact target name.

§matches: usize

Candidate count.

§

FinalRootCoordinateMismatch

Profile, features, manifest, and target metadata are part of root identity across phases.

Fields

§package_id: String

Exact package ID.

§target_name: String

Exact target name.

§

MissingFinalRootExecutable

Executable roots must remain executable roots in the final phase.

Fields

§package_id: String

Exact package ID.

§target_name: String

Exact target name.

§

FinalRootHasNoArtifact

A final check root still needs one Cargo-enumerated materialized file.

§

InspectFinalRootArtifact

Final root output inspection failed.

Fields

§path: PathBuf

Cargo-enumerated artifact path.

§source: Error

Filesystem failure.

§

FinalRootArtifactNotFile(PathBuf)

Cargo-enumerated final root material must be an ordinary file.

§

FinalRootNotHostExecutable

Run/test requests require a directly host-executable attested root.

Fields

§package_id: String

Exact Cargo package ID.

§target_name: String

Exact Cargo target name.

§

FinalRootManifestWithoutParent(PathBuf)

Cargo manifest paths must identify the test package directory.

§

ExecuteFinalRoot

The attested executable could not be launched directly.

Fields

§path: PathBuf

Attested executable or test harness.

§source: Error

Host spawn failure.

§

FinalRootExited

User programs and test harnesses propagate a nonzero result.

Fields

§path: PathBuf

Attested executable or test harness.

§status: ExitStatus

Exact host exit status.

§

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.

Fields

§matches: usize

Candidate count.

§

LinkManifest(LinkManifestAssemblyError)

Exact external root graph assembly failed.

Object extraction/relocation resolution failed.

§

AbiAdapter(AbiAdapterError)

Legacy producer data could not become canonical ABI.

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

Source§

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

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

impl Display for LinkedCargoError

Source§

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

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

impl Error for LinkedCargoError

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

impl From<ManagedPathError> for LinkedCargoError

Source§

fn from(source: ManagedPathError) -> Self

Converts to this type from the input type.

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