Skip to main content

ExpandError

Enum ExpandError 

Source
#[non_exhaustive]
pub enum ExpandError {
Show 21 variants InvariantViolation(String), EmptyCluster, MissingCluster { id: String, version: Version, }, InvalidVersionSelector { target_kind: VersionTargetKind, id: String, selector: Version, }, UnsatisfiedVersionConstraint { target_kind: VersionTargetKind, id: String, selector: Version, available_versions: Vec<Version>, }, InvalidAvailableVersion { target_kind: VersionTargetKind, id: String, version: Version, }, DuplicateInputPort { name: String, }, DuplicateOutputPort { name: String, }, DuplicateParameter { name: String, }, ParameterDefaultTypeMismatch { name: String, expected: ParameterType, got: ParameterType, }, InvalidDeriveKeySlot { parameter: String, }, SignatureInferenceFailed(SignatureInferenceError), DeclaredSignatureInvalid(ClusterValidationError), MissingRequiredParameter { cluster_id: String, parameter: String, }, ParameterBindingTypeMismatch { cluster_id: String, parameter: String, expected: ParameterType, got: ParameterType, }, ExposedParameterNotFound { cluster_id: String, parameter: String, referenced: String, }, ExposedParameterTypeMismatch { cluster_id: String, parameter: String, expected: ParameterType, got: ParameterType, }, UnresolvedExposedBinding { node_id: String, parameter: String, referenced: String, }, UndeclaredParameter { node_id: String, parameter: String, }, UnmappedBoundaryOutput { port_name: String, node_id: String, }, UnmappedNestedOutput { cluster_id: String, port_name: String, },
}

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

InvariantViolation(String)

A kernel expansion invariant was violated.

§

EmptyCluster

§

MissingCluster

Fields

§version: Version
§

InvalidVersionSelector

I.6: Node version selector is not valid semver or semver constraint syntax.

Fields

§target_kind: VersionTargetKind
§selector: Version
§

UnsatisfiedVersionConstraint

I.6: No available version satisfies the selector.

Fields

§target_kind: VersionTargetKind
§selector: Version
§available_versions: Vec<Version>
§

InvalidAvailableVersion

I.6: Registered available version is not strict semver.

Fields

§target_kind: VersionTargetKind
§version: Version
§

DuplicateInputPort

Fields

§name: String
§

DuplicateOutputPort

Fields

§name: String
§

DuplicateParameter

Fields

§name: String
§

ParameterDefaultTypeMismatch

Fields

§name: String
§expected: ParameterType
§

InvalidDeriveKeySlot

Fields

§parameter: String
§

SignatureInferenceFailed(SignatureInferenceError)

§

DeclaredSignatureInvalid(ClusterValidationError)

§

MissingRequiredParameter

I.3: Required parameter has no binding and no default

Fields

§cluster_id: String
§parameter: String
§

ParameterBindingTypeMismatch

I.4: Literal binding has wrong type

Fields

§cluster_id: String
§parameter: String
§expected: ParameterType
§

ExposedParameterNotFound

I.5: Exposed binding references nonexistent parent parameter

Fields

§cluster_id: String
§parameter: String
§referenced: String
§

ExposedParameterTypeMismatch

I.4: Exposed binding has incompatible type with parent parameter

Fields

§cluster_id: String
§parameter: String
§expected: ParameterType
§

UnresolvedExposedBinding

Exposed binding was not resolved during expansion (no parent provided a value)

Fields

§node_id: String
§parameter: String
§referenced: String
§

UndeclaredParameter

I.7: Binding references a parameter not declared in the target’s manifest

Fields

§node_id: String
§parameter: String
§

UnmappedBoundaryOutput

D.4: Boundary output references unmapped node_id

Fields

§port_name: String
§node_id: String
§

UnmappedNestedOutput

D.4: Nested cluster output port references unmapped node

Fields

§cluster_id: String
§port_name: String

Trait Implementations§

Source§

impl Clone for ExpandError

Source§

fn clone(&self) -> ExpandError

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 ExpandError

Source§

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

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

impl ErrorInfo for ExpandError

Source§

fn rule_id(&self) -> &'static str

Source§

fn phase(&self) -> Phase

Source§

fn doc_anchor(&self) -> &'static str

Source§

fn summary(&self) -> Cow<'static, str>

Source§

fn path(&self) -> Option<Cow<'static, str>>

Source§

fn fix(&self) -> Option<Cow<'static, str>>

Source§

impl PartialEq for ExpandError

Source§

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

Tests for self and other values to be equal, and is used by ==.
1.0.0 (const: unstable) · Source§

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

Tests for !=. The default implementation is almost always sufficient, and should not be overridden without very good reason.
Source§

impl StructuralPartialEq for ExpandError

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, U> TryFrom<U> for T
where U: Into<T>,

Source§

type Error = Infallible

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

fn try_from(value: U) -> Result<T, <T as TryFrom<U>>::Error>

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.