Skip to main content

RegistryError

Enum RegistryError 

Source
pub enum RegistryError {
Show 29 variants DuplicateComponent { id: ComponentId, }, MissingDependency { component: ComponentId, required: ComponentId, }, CyclicDependency { component: ComponentId, required: ComponentId, }, CapabilityConflict { capability: String, provider: ComponentId, }, InvalidCapabilityScope { component: ComponentId, request: CapabilityRequest, reason: ScopeValidationError, }, DuplicateCapabilityNeed { component: ComponentId, request: CapabilityRequest, }, UndeclaredSupervision { id: ComponentId, }, InvalidSupervisionWindow { id: ComponentId, }, DuplicateChild { id: ComponentId, child: String, }, NotRegistered { id: ComponentId, }, AlreadyStarting { id: ComponentId, }, AlreadyRunning { id: ComponentId, }, AlreadyStopping { id: ComponentId, }, AlreadyRemoving { id: ComponentId, }, DependencyNotRunning { component: ComponentId, required: ComponentId, state: LifecycleState, }, RunningDependent { dependent: ComponentId, required: ComponentId, }, DeferredBifImports { id: ComponentId, module: String, imports: String, }, ModuleLoad { id: ComponentId, detail: String, }, Spawn { id: ComponentId, process: String, detail: String, }, LivenessTimeout { id: ComponentId, child: String, }, StartFailed { id: ComponentId, reason: FailureReason, }, StopFailed { id: ComponentId, reason: FailureReason, }, ModulePurge { id: ComponentId, module: String, detail: String, }, ModuleDelete { id: ComponentId, module: String, }, ModuleStillLoaded { id: ComponentId, module: String, }, CommandDelivery { id: ComponentId, command: &'static str, source: MailboxSendError, }, SupervisorProtocol { id: ComponentId, detail: String, }, SynchronizationPoisoned, MonitorTerminated { id: ComponentId, },
}
Expand description

A typed refusal or runtime failure from the component registry.

Variants§

§

DuplicateComponent

Registration attempted to reuse a stable identity.

Fields

§id: ComponentId

Conflicting stable identity.

§

MissingDependency

A declared dependency was not in the registration table.

Fields

§component: ComponentId

Component being registered.

§required: ComponentId

Missing edge target.

§

CyclicDependency

A dependency edge would make the graph cyclic.

Fields

§component: ComponentId

Source of the cyclic edge.

§required: ComponentId

Target of the cyclic edge.

§

CapabilityConflict

Two registered components claimed the same capability identifier.

Fields

§capability: String

Colliding service capability identifier.

§provider: ComponentId

Existing provider.

§

InvalidCapabilityScope

A host-authority declaration used a malformed typed scope.

Fields

§component: ComponentId

Component being registered.

§request: CapabilityRequest

Offending declaration.

§reason: ScopeValidationError

Exact scope validation refusal.

§

DuplicateCapabilityNeed

A manifest repeated an exact kind-and-scope pair.

Fields

§component: ComponentId

Component being registered.

§request: CapabilityRequest

Duplicate declaration.

§

UndeclaredSupervision

Registration omitted the mandatory restart intensity declaration.

Fields

§id: ComponentId

Component missing the declaration.

§

InvalidSupervisionWindow

A restart window of zero cannot define an intensity interval.

Fields

§id: ComponentId

Component with the invalid policy.

§

DuplicateChild

Child names are component-local unique keys.

Fields

§id: ComponentId

Component with the duplicate declaration.

§child: String

Duplicate child key.

§

NotRegistered

The requested component is not registered.

Fields

§id: ComponentId

Requested identity.

§

AlreadyStarting

A start is already in flight for this identity.

Fields

§id: ComponentId

Busy identity.

§

AlreadyRunning

The component is already running.

Fields

§id: ComponentId

Running identity.

§

AlreadyStopping

A stop is already in flight for this identity.

Fields

§id: ComponentId

Busy identity.

§

AlreadyRemoving

A remove is already in flight for this identity.

Fields

§id: ComponentId

Busy identity.

§

DependencyNotRunning

A dependency exists but has not reached Running.

Fields

§component: ComponentId

Component whose start was refused.

§required: ComponentId

Required component.

§state: LifecycleState

Observed dependency state.

§

RunningDependent

A running component still depends on the removal target.

Fields

§dependent: ComponentId

Running dependent preventing removal.

§required: ComponentId

Requested removal target.

§

DeferredBifImports

Hot-loaded bytecode carries erlang:* imports the scheduler composition left Deferred — dispatch would kill the process at first use.

Fields

§id: ComponentId

Component whose start was refused.

§module: String

Module whose committed import table carries the deferrals.

§imports: String

Deferred imports in erlang:name/arity form.

§

ModuleLoad

beamr refused or could not parse component bytecode.

Fields

§id: ComponentId

Component being started.

§detail: String

beamr loader detail.

§

Spawn

A native supervisor or linked child could not be spawned.

Fields

§id: ComponentId

Component being started or restarted.

§process: String

Supervisor or child name.

§detail: String

beamr spawn detail.

§

LivenessTimeout

A child did not answer its declared mailbox probe in time.

Fields

§id: ComponentId

Component being started or probed.

§child: String

Child that did not answer.

§

StartFailed

Start failed after entering Starting; status remains Failed.

Fields

§id: ComponentId

Failed identity.

§reason: FailureReason

Observable reason retained in status.

§

StopFailed

Ordered stop observed a non-normal or missing tombstone.

Fields

§id: ComponentId

Component being stopped.

§reason: FailureReason

Exact observed failure.

§

ModulePurge

A retained old module generation could not be safely purged.

Fields

§id: ComponentId

Component being removed.

§module: String

Module display name.

§detail: String

beamr purge detail.

§

ModuleDelete

The current module generation was absent when removal expected it.

Fields

§id: ComponentId

Component being removed.

§module: String

Module display name.

§

ModuleStillLoaded

Lookup still found code after deletion.

Fields

§id: ComponentId

Component being removed.

§module: String

Module display name.

§

CommandDelivery

beamr refused a typed host command at supervisor mailbox admission.

Fields

§id: ComponentId

Affected component.

§command: &'static str

Stable command kind whose delivery was attempted.

§source: MailboxSendError

Exact beamr mailbox admission refusal.

§

SupervisorProtocol

Host/supervisor mailbox protocol was violated.

Fields

§id: ComponentId

Affected component.

§detail: String

Protocol detail.

§

SynchronizationPoisoned

Internal synchronization was poisoned by a panic.

§

MonitorTerminated

A component monitor thread terminated without returning its result.

Fields

§id: ComponentId

Component whose monitor was lost.

Trait Implementations§

Source§

impl Debug for RegistryError

Source§

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

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

impl Display for RegistryError

Source§

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

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

impl Error for RegistryError

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> Instrument for T

Source§

fn instrument(self, span: Span) -> Instrumented<Self>

Instruments this type with the provided Span, returning an Instrumented wrapper. Read more
Source§

fn in_current_span(self) -> Instrumented<Self>

Instruments this type with the current Span, returning an Instrumented wrapper. Read more
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> Pointable for T

Source§

const ALIGN: usize

The alignment of pointer.
Source§

type Init = T

The type for initializers.
Source§

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

Initializes a with the given initializer. Read more
Source§

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

Dereferences the given pointer. Read more
Source§

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

Mutably dereferences the given pointer. Read more
Source§

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

impl<T> WithSubscriber for T

Source§

fn with_subscriber<S>(self, subscriber: S) -> WithDispatch<Self>
where S: Into<Dispatch>,

Attaches the provided Subscriber to this type, returning a WithDispatch wrapper. Read more
Source§

fn with_current_subscriber(self) -> WithDispatch<Self>

Attaches the current default Subscriber to this type, returning a WithDispatch wrapper. Read more