Skip to main content

RuntimeConfigError

Enum RuntimeConfigError 

Source
#[non_exhaustive]
pub enum RuntimeConfigError {
Show 21 variants IdentityExhausted, MalformedIdentity { kind: IdentityKind, }, DuplicateEngine { engine_id: EngineId, }, DuplicateProviderDeviceTarget { provider_device_identity: ProviderDeviceIdentity, first_engine_id: EngineId, duplicate_engine_id: EngineId, }, EngineTargetRebind { engine_id: EngineId, current: ProviderDeviceIdentity, replacement: ProviderDeviceIdentity, }, DuplicateCapability { capability: CoreCapabilityKind, }, ConflictingRegistration { key: RegistrationKey, }, MissingEngine { engine_id: EngineId, }, EmptyStorageClasses { engine_id: EngineId, }, DuplicateStorageClass { engine_id: EngineId, storage_class: StorageClass, first_index: usize, duplicate_index: usize, }, DefaultStorageClassNotListed { engine_id: EngineId, default_storage_class: StorageClass, }, UnknownTransferEndpointEngine { endpoint: TransferEndpoint, }, UnsupportedTransferEndpointStorage { endpoint: TransferEndpoint, }, MissingTransferProvider { source_endpoint: TransferEndpoint, destination: TransferEndpoint, }, StaleTransferRoute { source_endpoint: TransferEndpoint, destination: TransferEndpoint, endpoint: TransferEndpoint, registered: Box<ProviderDeviceIdentity>, current: Box<ProviderDeviceIdentity>, }, UnboundTransferRoute { source_endpoint: TransferEndpoint, destination: TransferEndpoint, }, BoundCandidateInvariant { endpoint: TransferEndpoint, }, MissingInputIngressValidator { engine_id: EngineId, }, ContextIdentityMismatch { engine_id: EngineId, }, InvalidExecutionPolicy { reason: ExecutionPolicyError, }, ExtensionModule { source: ExtensionModuleError, },
}
Expand description

Reports invalid runtime configuration.

§Examples

use tenferro_runtime::{EngineId, RuntimeConfigError};

let error = RuntimeConfigError::DuplicateEngine {
    engine_id: EngineId::new("tenferro.cpu").unwrap(),
};
assert!(error.to_string().contains("already registered"));

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

IdentityExhausted

Runtime identity or registration identity allocation exhausted.

§

MalformedIdentity

A namespaced runtime identifier was malformed.

Fields

§kind: IdentityKind

Identifier class that failed validation.

§

DuplicateEngine

An engine registration tried to insert a different value for an already-registered engine ID.

Fields

§engine_id: EngineId

Duplicated engine identifier.

§

DuplicateProviderDeviceTarget

Two direct engines selected the same provider/device target.

Fields

§provider_device_identity: ProviderDeviceIdentity

Physical provider/device binding that was selected twice.

§first_engine_id: EngineId

First logical engine using the binding.

§duplicate_engine_id: EngineId

Later logical engine that attempted to reuse the binding.

§

EngineTargetRebind

A replacement attempted to change the physical target of an engine ID.

Fields

§engine_id: EngineId

Logical engine whose physical binding was changed.

§current: ProviderDeviceIdentity

Binding currently attached to the engine.

§replacement: ProviderDeviceIdentity

Binding requested by the replacement.

§

DuplicateCapability

A direct capability slot was registered twice where replacement is not accepted.

Fields

§capability: CoreCapabilityKind

Duplicated capability kind.

§

ConflictingRegistration

A registration key conflicted across transactional registration input.

Fields

§key: RegistrationKey

Conflicting registration key.

§

MissingEngine

A requested engine replacement or removal had no existing record.

Fields

§engine_id: EngineId

Missing engine identifier.

§

EmptyStorageClasses

Engine registration provided no supported storage classes.

Fields

§engine_id: EngineId

Engine being registered.

§

DuplicateStorageClass

Engine registration repeated a storage class.

Fields

§engine_id: EngineId

Engine being registered.

§storage_class: StorageClass

Duplicated storage class.

§first_index: usize

First position where the storage class appeared.

§duplicate_index: usize

Duplicate position that failed validation.

§

DefaultStorageClassNotListed

Engine registration selected a default storage class that is not in its supported list.

Fields

§engine_id: EngineId

Engine being registered.

§default_storage_class: StorageClass

Missing default storage class.

§

UnknownTransferEndpointEngine

A transfer endpoint references an engine that is absent from the candidate configuration.

Fields

§endpoint: TransferEndpoint

Endpoint that references the missing engine.

§

UnsupportedTransferEndpointStorage

A transfer endpoint names a storage class unsupported by its engine.

Fields

§endpoint: TransferEndpoint

Endpoint whose storage class is unsupported by its engine.

§

MissingTransferProvider

A transfer route removal named an endpoint pair that is not registered.

Fields

§source_endpoint: TransferEndpoint

Source endpoint of the absent route.

§destination: TransferEndpoint

Destination endpoint of the absent route.

§

StaleTransferRoute

A route retains a physical binding that no longer matches its engine.

Fields

§source_endpoint: TransferEndpoint

Source endpoint of the stale route.

§destination: TransferEndpoint

Destination endpoint of the stale route.

§endpoint: TransferEndpoint

Route endpoint whose physical binding changed.

§registered: Box<ProviderDeviceIdentity>

Binding captured when this route was registered/frozen.

§current: Box<ProviderDeviceIdentity>

Binding currently attached to the endpoint’s engine.

§

UnboundTransferRoute

A route reached freezing without a physical binding after validation.

Fields

§source_endpoint: TransferEndpoint

Source endpoint of the unbound route.

§destination: TransferEndpoint

Destination endpoint of the unbound route.

§

BoundCandidateInvariant

A bound candidate referenced an engine that disappeared before freeze; this indicates runtime corruption rather than candidate validation.

Fields

§endpoint: TransferEndpoint

Endpoint whose already-bound engine lookup failed.

§

MissingInputIngressValidator

An execution bridge omitted the validators required for explicit input ingress and destination-buffer residency.

Fields

§engine_id: EngineId

Engine with the incomplete execution contract.

§

ContextIdentityMismatch

A replacement attempted to reuse an engine ID with a different execution context identity in a context where that is invalid.

Fields

§engine_id: EngineId

Engine with the mismatched context identity.

§

InvalidExecutionPolicy

Execution policy failed validation.

Fields

§reason: ExecutionPolicyError

Typed policy validation reason.

§

ExtensionModule

Extension module transaction failed.

Fields

§source: ExtensionModuleError

Typed extension module source.

Trait Implementations§

Source§

impl Debug for RuntimeConfigError

Source§

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

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

impl Display for RuntimeConfigError

Source§

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

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

impl Error for RuntimeConfigError

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<IdentityError> for RuntimeConfigError

Source§

fn from(source: IdentityError) -> 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, 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
§

impl<T> Pointable for T

§

const ALIGN: usize

The alignment of pointer.
§

type Init = T

The type for initializers.
§

unsafe fn init(init: <T as Pointable>::Init) -> usize

Initializes a with the given initializer. Read more
§

unsafe fn deref<'a>(ptr: usize) -> &'a T

Dereferences the given pointer. Read more
§

unsafe fn deref_mut<'a>(ptr: usize) -> &'a mut T

Mutably dereferences the given pointer. Read more
§

unsafe fn drop(ptr: usize)

Drops the object pointed to by the given pointer. 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 = 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.
§

impl<T> MaybeSend for T
where T: Send,

§

impl<T> MaybeSendSync for T
where T: Send + Sync,

§

impl<T> MaybeSync for T
where T: Sync,