Skip to main content

RuntimeFailure

Enum RuntimeFailure 

Source
pub enum RuntimeFailure {
Show 14 variants Unavailable { capability: &'static str, }, UnknownOperation { capability: &'static str, operation: String, }, AmbiguousBinding { capability: &'static str, providers: usize, }, ProtocolViolation { capability: &'static str, }, MissingModuleFactory { instance: String, package_id: String, }, UnavailableExecutionClass { instance_key: String, execution_class: String, }, InvalidResolvedPlan { detail: String, }, AdmissionClosed, ResourceExhausted { capability: &'static str, operation: String, }, DeadlineExceeded { request_id: RequestId, }, Cancelled { request_id: RequestId, }, Internal { detail: String, }, ModuleFailure { detail: String, }, ModuleRestartExhausted { instance: String, attempts: usize, },
}
Expand description

Runtime-owned failure, kept separate from Capability-defined Domain Errors.

Variants§

§

Unavailable

The consumer has no resolved binding for this Capability.

Fields

§capability: &'static str
§

UnknownOperation

The bound provider does not declare the requested Operation.

Fields

§capability: &'static str
§operation: String
§

AmbiguousBinding

A singular generated client was used for a requirement with many providers.

Fields

§capability: &'static str
§providers: usize
§

ProtocolViolation

Generated native types disagreed with the prepared endpoint.

Fields

§capability: &'static str
§

MissingModuleFactory

A package selected by the Plan was not linked into the native App.

Fields

§instance: String
§package_id: String
§

UnavailableExecutionClass

No installed Execution Adapter provides the class selected by one Instance.

Fields

§instance_key: String
§execution_class: String
§

InvalidResolvedPlan

The Resolved Plan or prepared endpoint set is internally inconsistent.

Fields

§detail: String
§

AdmissionClosed

New request admission was closed because the App is shutting down.

§

ResourceExhausted

The request could not enter a full bounded admission queue.

Fields

§capability: &'static str
§operation: String
§

DeadlineExceeded

The invocation deadline expired before the request completed.

Fields

§request_id: RequestId
§

Cancelled

The caller cancelled the invocation before it completed.

Fields

§request_id: RequestId
§

Internal

The Runtime Driver or Adapter reported an internal execution failure.

Fields

§detail: String
§

ModuleFailure

A Module generation reported a failure that should trigger supervision.

Fields

§detail: String
§

ModuleRestartExhausted

A Module Instance exhausted its finite restart budget.

Fields

§instance: String
§attempts: usize

Trait Implementations§

Source§

impl Clone for RuntimeFailure

Source§

fn clone(&self) -> RuntimeFailure

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 RuntimeFailure

Source§

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

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

impl Eq for RuntimeFailure

Source§

impl From<&RuntimeFailure> for RuntimeFailureKind

Source§

fn from(error: &RuntimeFailure) -> Self

Converts to this type from the input type.
Source§

impl PartialEq for RuntimeFailure

Source§

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

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