Skip to main content

PrepareError

Enum PrepareError 

Source
pub enum PrepareError {
Show 19 variants RuntimeMismatch { expected: RuntimeId, actual: RuntimeId, }, StaleEpoch { prepared: RuntimeEpoch, current: RuntimeEpoch, }, InputSignature { source: InputSignatureError, }, ShapeGuard { source: ShapeGuardError, }, Specialization { source: SpecializationError, }, NoEligibleEngine { constraint: ProgramPlacementConstraint, }, NoExecutableEngine { engine_id: EngineId, }, NoInputIngress { input_index: usize, placement: Placement, }, DispatchSearchBudgetExceeded { attempts: usize, limit: usize, }, MissingTransferProvider { instruction_index: usize, value_slot: usize, destination_endpoint: TransferEndpoint, available_source_endpoints: Vec<TransferEndpoint>, }, ResolvedEngineUnavailable { engine_id: EngineId, }, Unsupported { reason: UnsupportedReason, }, DeterminismUnsupported { engine_id: EngineId, }, ProviderContract { source: ProviderContractError, }, PreparationCycle { key: PreparationKeySummary, }, NestedPreparationUnsupported { parent: PreparationKeySummary, requested: PreparationKeySummary, }, CacheInFlightCapacityExceeded { in_flight: usize, queued_distinct_keys: usize, }, CacheState { source: RuntimeStateError, }, Engine { source: Arc<dyn Error + Send + Sync>, },
}
Expand description

Reports failures while preparing runtime execution artifacts.

§Examples

use tenferro_runtime::{InputSignature, PrepareError, SpecializationRequirements};

let error = SpecializationRequirements::polymorphic(1)
    .project(&InputSignature::new(Vec::new()))
    .unwrap_err();
assert!(matches!(error, PrepareError::Specialization { .. }));

Variants§

§

RuntimeMismatch

Prepared artifact belongs to a different runtime.

Fields

§expected: RuntimeId

Runtime expected by the prepared artifact.

§actual: RuntimeId

Runtime currently executing.

§

StaleEpoch

Prepared artifact was created for a stale runtime epoch.

Fields

§prepared: RuntimeEpoch

Epoch captured by the prepared artifact.

§current: RuntimeEpoch

Runtime’s current epoch.

§

InputSignature

Input signature construction failed.

Fields

§source: InputSignatureError

Typed source error.

§

ShapeGuard

Semantic shape guards failed.

Fields

§source: ShapeGuardError

Typed source error.

§

Specialization

Signature projection through specialization requirements failed.

Fields

§source: SpecializationError

Typed source error.

§

NoEligibleEngine

No eligible engine matched the placement and capability constraints.

Fields

§constraint: ProgramPlacementConstraint

Placement constraint that could not be satisfied.

§

NoExecutableEngine

A preparation-only engine advertised the required capability but cannot produce an executable prepared schedule.

Fields

§engine_id: EngineId

Engine whose preparation capability cannot be used for execution.

§

NoInputIngress

No eligible engine declared an ingress compatible with an input placement.

Fields

§input_index: usize

Input position in the compiled-program signature.

§placement: Placement

Placement rejected by every eligible engine ingress.

§

DispatchSearchBudgetExceeded

Placement resolution exceeded its bounded combination-search budget.

Fields

§attempts: usize

Number of dispatch combinations attempted.

§limit: usize

Configured hard limit for this search.

§

MissingTransferProvider

No available copy of a value has a registered direct transfer provider to the storage required by its consumer.

Fields

§instruction_index: usize

Staged instruction whose input cannot be reached.

§value_slot: usize

Value slot required by the instruction.

§destination_endpoint: TransferEndpoint

Destination endpoint required by the instruction.

§available_source_endpoints: Vec<TransferEndpoint>

Endpoints retaining an available copy.

§

ResolvedEngineUnavailable

A resolved placement references an engine absent from its preparation snapshot.

Fields

§engine_id: EngineId

Engine referenced by the resolved placement.

§

Unsupported

No provider supports this operation under the requested constraints.

Fields

§reason: UnsupportedReason

Deterministic unsupported reason.

§

DeterminismUnsupported

Deterministic execution was requested from an engine that cannot provide it.

Fields

§engine_id: EngineId

Engine that cannot satisfy deterministic preparation.

§

ProviderContract

Provider returned a value that violates the runtime preparation contract.

Fields

§source: ProviderContractError

Typed provider-contract source.

§

PreparationCycle

Preparation recursion reached an unsupported cycle.

Fields

§key: PreparationKeySummary

Bounded summary of the recursive key.

§

NestedPreparationUnsupported

Preparation recursively requested a different key.

Fields

§parent: PreparationKeySummary

Parent key currently preparing on this thread.

§requested: PreparationKeySummary

Nested key requested by the producer.

§

CacheInFlightCapacityExceeded

The preparation cache is full of active/queued distinct keys.

Fields

§in_flight: usize

Active distinct preparations.

§queued_distinct_keys: usize

Queued distinct keys.

§

CacheState

Runtime cache state could not be accessed.

Fields

§source: RuntimeStateError

Runtime state source.

§

Engine

Engine or internal preparation source failed.

Fields

§source: Arc<dyn Error + Send + Sync>

Shared typed source.

Trait Implementations§

Source§

impl Debug for PrepareError

Source§

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

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

impl Display for PrepareError

Source§

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

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

impl Error for PrepareError

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

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,