Skip to main content

ProjectionError

Enum ProjectionError 

Source
pub enum ProjectionError {
    MissingProcess {
        application: ApplicationId,
        process: ProcessId,
    },
    EmptyProcessRoots {
        application: ApplicationId,
        process: ProcessId,
    },
    MissingExecution {
        application: ApplicationId,
        process: ProcessId,
        execution: ExecutionId,
    },
    MissingModule {
        application: ApplicationId,
        process: ProcessId,
        module: ModuleId,
    },
    MissingProvider {
        application: ApplicationId,
        process: ProcessId,
        required_by: ModuleId,
        capability: CapabilityId,
        qualifier: Option<QualifierId>,
    },
    AmbiguousProvider {
        application: ApplicationId,
        process: ProcessId,
        required_by: ModuleId,
        capability: CapabilityId,
        qualifier: Option<QualifierId>,
        candidates: Vec<ModuleId>,
    },
    UnavailableProvider {
        application: ApplicationId,
        process: ProcessId,
        required_by: ModuleId,
        capability: CapabilityId,
        qualifier: Option<QualifierId>,
        provider: ModuleId,
    },
    ExcludedProvider {
        application: ApplicationId,
        process: ProcessId,
        required_by: ModuleId,
        capability: CapabilityId,
        qualifier: Option<QualifierId>,
        provider: ModuleId,
    },
    ExcludedRoot {
        application: ApplicationId,
        process: ProcessId,
        module: ModuleId,
    },
    DependencyCycle {
        application: ApplicationId,
        process: ProcessId,
        path: Vec<ModuleId>,
    },
    OrphanContribution {
        application: ApplicationId,
        process: ProcessId,
        contributor: ModuleId,
        target: ContributionTargetId,
        qualifier: QualifierId,
        contribution: ContributionId,
    },
}
Expand description

A structured failure while deriving a selected process projection.

Variants§

§

MissingProcess

The application has no declaration for the requested process.

Fields

§application: ApplicationId

The application identity.

§process: ProcessId

The requested process identity.

§

EmptyProcessRoots

The process is declared without an execution root.

Fields

§application: ApplicationId

The application identity.

§process: ProcessId

The process identity with no roots.

§

MissingExecution

A process root refers to an undeclared execution.

Fields

§application: ApplicationId

The application identity.

§process: ProcessId

The selected process identity.

§execution: ExecutionId

The undeclared root execution.

§

MissingModule

A root or reachable edge refers to an undeclared module.

Fields

§application: ApplicationId

The application identity.

§process: ProcessId

The selected process identity.

§module: ModuleId

The undeclared module identity.

§

MissingProvider

An included required capability has no provider.

Fields

§application: ApplicationId

Application identity.

§process: ProcessId

Projected process identity.

§required_by: ModuleId

Requiring module.

§capability: CapabilityId

Required capability.

§qualifier: Option<QualifierId>

Required qualifier, if any.

§

AmbiguousProvider

An included requirement has multiple providers without an explicit selection.

Fields

§application: ApplicationId

Application identity.

§process: ProcessId

Projected process identity.

§required_by: ModuleId

Requiring module.

§capability: CapabilityId

Required capability.

§qualifier: Option<QualifierId>

Required qualifier, if any.

§candidates: Vec<ModuleId>

Sorted matching provider modules.

§

UnavailableProvider

A selected provider is not declared for the requirement.

Fields

§application: ApplicationId

Application identity.

§process: ProcessId

Projected process identity.

§required_by: ModuleId

Requiring module.

§capability: CapabilityId

Required capability.

§qualifier: Option<QualifierId>

Required qualifier, if any.

§provider: ModuleId

Selected provider module.

§

ExcludedProvider

An included requirement selected an excluded provider.

Fields

§application: ApplicationId

Application identity.

§process: ProcessId

Projected process identity.

§required_by: ModuleId

Requiring module.

§capability: CapabilityId

Required capability.

§qualifier: Option<QualifierId>

Required qualifier, if any.

§provider: ModuleId

Excluded provider module.

§

ExcludedRoot

An execution root was explicitly excluded.

Fields

§application: ApplicationId

Application identity.

§process: ProcessId

Projected process identity.

§module: ModuleId

Excluded root module.

§

DependencyCycle

A cycle exists in the selected process dependency graph.

Fields

§application: ApplicationId

Application identity.

§process: ProcessId

Projected process identity.

§path: Vec<ModuleId>

Closed cycle path, with the first module repeated at the end.

§

OrphanContribution

A reachable module declares a required contribution without a consumer.

Fields

§application: ApplicationId

Application identity.

§process: ProcessId

Projected process identity.

§contributor: ModuleId

Module declaring the contribution.

§target: ContributionTargetId

Contribution target identity.

§qualifier: QualifierId

Contribution target qualifier.

§contribution: ContributionId

Contribution kind identity.

Trait Implementations§

Source§

impl Clone for ProjectionError

Source§

fn clone(&self) -> Self

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 ProjectionError

Source§

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

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

impl Display for ProjectionError

Source§

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

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

impl Eq for ProjectionError

Source§

impl Error for ProjectionError

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 ProjectionError

Source§

fn eq(&self, other: &Self) -> 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 ProjectionError

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