Skip to main content

PlanResolutionError

Enum PlanResolutionError 

Source
pub enum PlanResolutionError {
Show 30 variants UnsupportedTerminalPolicy, InvalidTerminalPolicy { detail: String, }, InvalidAuthoring { instance_key: String, }, InvalidRequirementId { consumer_instance: String, requirement_id: String, }, DuplicateRequirementId { consumer_instance: String, requirement_id: String, }, UnsupportedSchemaVersion { expected: u32, actual: u32, }, DuplicatePluginInstance { instance_key: String, }, MissingExecutionLane, InvalidExecutionLane { execution_lane: String, }, DuplicateExecutionLane { execution_lane: String, }, UndeclaredExecutionLane { instance_key: String, execution_lane: String, }, InvalidPluginEntrypoint { instance_key: String, }, DuplicateProvidedCapability { provider_instance: String, capability_id: String, }, DuplicateOperation { provider_instance: String, capability_id: String, operation: String, }, DuplicateRequiredCapability { consumer_instance: String, capability_id: String, }, InvalidConsumerReference { consumer_instance: String, capability_id: String, }, InvalidProviderReference { consumer_instance: String, capability_id: String, provider_instance: String, }, UndeclaredCapabilityRequirement { consumer_instance: String, capability_id: String, }, IncompatibleCapabilityVersion { consumer_instance: String, capability_id: String, required: String, provided: String, provider_instance: String, }, CrossLaneTransferUnsupported { consumer_instance: String, provider_instance: String, capability_id: String, }, CrossLaneInteractionUnsupported { capability_id: String, operation: String, interaction: CapabilityOperationKind, }, MissingOneBinding { consumer_instance: String, capability_id: String, }, AmbiguousOneBinding { consumer_instance: String, capability_id: String, providers: usize, }, AmbiguousOptionalBinding { consumer_instance: String, capability_id: String, providers: usize, }, DuplicateBinding { consumer_instance: String, capability_id: String, provider_instance: String, }, InvalidRequestAdmission { capability_id: String, operation: String, queue_capacity: usize, max_concurrency: usize, }, UnknownAdmissionOperation { capability_id: String, operation: String, }, UnknownOperationInteraction { capability_id: String, operation: String, }, InvalidRestartPolicy { instance_key: String, max_attempts: usize, window: Duration, }, ActivationCycle { instances: Vec<String>, },
}
Expand description

A reason App Composition could not be materialized into a Plan.

Variants§

§

UnsupportedTerminalPolicy

This Kernel does not yet execute the selected terminal policy.

§

InvalidTerminalPolicy

Host-essential roots or their materialized closure are invalid.

Fields

§detail: String
§

InvalidAuthoring

Contract version or selected runtime profile is invalid.

Fields

§instance_key: String
§

InvalidRequirementId

A requirement identity is invalid for the selected authoring version.

Fields

§consumer_instance: String
§requirement_id: String
§

DuplicateRequirementId

Two declarations share one consumer-local identity.

Fields

§consumer_instance: String
§requirement_id: String
§

UnsupportedSchemaVersion

The Plan schema cannot be executed by this Kernel version.

Fields

§expected: u32
§actual: u32
§

DuplicatePluginInstance

Two Plugin Instances use the same App-local key.

Fields

§instance_key: String
§

MissingExecutionLane

Every App must declare at least one Execution Lane.

§

InvalidExecutionLane

An Execution Lane identity is empty or whitespace-only.

Fields

§execution_lane: String
§

DuplicateExecutionLane

Two Execution Lanes use the same App-local identity.

Fields

§execution_lane: String
§

UndeclaredExecutionLane

A Plugin Instance names an Execution Lane absent from the Plan.

Fields

§instance_key: String
§execution_lane: String
§

InvalidPluginEntrypoint

A Plugin Instance has no executable entrypoint identity.

Fields

§instance_key: String
§

DuplicateProvidedCapability

A Plugin declares the same provided Capability more than once.

Fields

§provider_instance: String
§capability_id: String
§

DuplicateOperation

One endpoint declares an Operation more than once.

Fields

§provider_instance: String
§capability_id: String
§operation: String
§

DuplicateRequiredCapability

A Plugin declares the same required Capability more than once.

Fields

§consumer_instance: String
§capability_id: String
§

InvalidConsumerReference

A binding names a consumer that is not in the Composition.

Fields

§consumer_instance: String
§capability_id: String
§

InvalidProviderReference

A binding names a provider that is not in the Composition or does not provide the Capability.

Fields

§consumer_instance: String
§capability_id: String
§provider_instance: String
§

UndeclaredCapabilityRequirement

A binding exists without a matching consumer requirement.

Fields

§consumer_instance: String
§capability_id: String
§

IncompatibleCapabilityVersion

The provider and consumer selected different exact Descriptor versions.

Fields

§consumer_instance: String
§capability_id: String
§required: String
§provided: String
§provider_instance: String
§

CrossLaneTransferUnsupported

A binding crosses Execution Lanes but its generated contract types are not transferable.

Fields

§consumer_instance: String
§provider_instance: String
§capability_id: String
§

CrossLaneInteractionUnsupported

A host Runtime does not implement cross-lane transfer for the selected interaction kind.

Retained so downstream code can classify failures produced by older Runtime versions.

Fields

§capability_id: String
§operation: String
§

MissingOneBinding

A one requirement has no explicit provider.

Fields

§consumer_instance: String
§capability_id: String
§

AmbiguousOneBinding

A one requirement has more than one explicit provider.

Fields

§consumer_instance: String
§capability_id: String
§providers: usize
§

AmbiguousOptionalBinding

An optional requirement has more than one explicit provider.

Fields

§consumer_instance: String
§capability_id: String
§providers: usize
§

DuplicateBinding

A provider is repeated for the same requirement.

Fields

§consumer_instance: String
§capability_id: String
§provider_instance: String
§

InvalidRequestAdmission

A request Operation has an invalid bounded admission policy.

Fields

§capability_id: String
§operation: String
§queue_capacity: usize
§max_concurrency: usize
§

UnknownAdmissionOperation

Admission was configured for an Operation absent from the endpoint.

Fields

§capability_id: String
§operation: String
§

UnknownOperationInteraction

Interaction metadata was configured for an absent Operation.

Fields

§capability_id: String
§operation: String
§

InvalidRestartPolicy

A Plugin Instance selected an unusable finite restart policy.

Fields

§instance_key: String
§max_attempts: usize
§window: Duration
§

ActivationCycle

Explicit Capability activation dependencies contain a cycle.

Fields

§instances: Vec<String>

Trait Implementations§

Source§

impl Clone for PlanResolutionError

Source§

fn clone(&self) -> PlanResolutionError

Returns a duplicate of the value. Read more
1.0.0 (const: unstable) · Source§

fn clone_from(&mut self, source: &Self)

Performs copy-assignment from source. Read more
Source§

impl Debug for PlanResolutionError

Source§

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

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

impl Display for PlanResolutionError

Source§

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

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

impl Eq for PlanResolutionError

Source§

impl Error for PlanResolutionError

1.30.0 · 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 PartialEq for PlanResolutionError

Source§

fn eq(&self, other: &PlanResolutionError) -> bool

Equality operator ==. Read more
1.0.0 (const: unstable) · Source§

fn ne(&self, other: &Rhs) -> bool

Inequality operator !=. Read more
Source§

impl StructuralPartialEq for PlanResolutionError

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> CloneToUninit for T
where T: Clone,

Source§

unsafe fn clone_to_uninit(&self, dest: *mut u8)

🔬This is a nightly-only experimental API. (clone_to_uninit)
Performs copy-assignment from self to dest. Read more
Source§

impl<T> From<T> for T

Source§

fn from(t: T) -> T

Returns the argument unchanged.

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> Same for T

Source§

type Output = T

Should always be Self
Source§

impl<T> ToOwned for T
where T: Clone,

Source§

type Owned = T

The resulting type after obtaining ownership.
Source§

fn to_owned(&self) -> T

Creates owned data from borrowed data, usually by cloning. Read more
Source§

fn clone_into(&self, target: &mut T)

Uses borrowed data to replace owned data, usually by cloning. Read more
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.