Skip to main content

HostError

Enum HostError 

Source
pub enum HostError {
Show 40 variants Application { stage: &'static str, source: AppError, }, AnnouncerConnect { address: String, detail: String, }, AnnouncerPublish { channel: String, detail: String, }, AnnouncerIntakeClosed, AnnouncerAlreadyStarted, AnnouncerSpawn { source: Error, }, AnnouncerPanicked, Runtime(RuntimeError), Registry(RegistryError), Capability(CapabilityMutationError), StatusMissing { id: ComponentId, }, NotRunning { id: ComponentId, state: LifecycleState, }, EventLoggerSpawn { source: Error, }, EventLoggerPanicked, TruthRecorderSpawn { source: Error, }, TruthRecorderPanicked, AssetRoot { path: PathBuf, detail: String, }, ConfigContract { detail: String, }, MissingIndex { path: PathBuf, }, Bind { addr: SocketAddr, source: Error, }, PageServerUnavailable { addr: SocketAddr, source: Error, }, NoFreePagePort { from: u16, }, Serve { source: Error, }, AsyncRuntime { source: Error, }, ShutdownSignal { source: Error, }, ProcessResidue { count: usize, }, SynchronizationPoisoned, ConfigRead { path: PathBuf, source: Error, }, ConfigParse { path: PathBuf, detail: String, }, LiminalConfig { source: ServerError, }, EmbeddedModeUnsupported { detail: String, }, LiminalComponent { component: &'static str, source: ServerError, }, LiminalShutdown { source: ServerError, }, LiminalExited { detail: String, }, DocumentContent { path: PathBuf, source: Error, }, DocumentState { source: StateError, }, DocumentService { source: DocServiceError, }, DocumentAuthorityConfig { source: ConfigError, }, DocumentBusClient { component: &'static str, detail: String, }, AuthoringPump { detail: String, },
}
Expand description

A typed failure from the frame host.

Variants§

§

Application

The embedding application’s own hook (readiness proof or fact announcement) refused.

Fields

§stage: &'static str

Which application hook refused (readiness, announce).

§source: AppError

The application’s typed failure.

§

AnnouncerConnect

The application-event announcer failed to connect to the embedded bus at boot. A typed boot failure — never a silently event-less page.

Fields

§address: String

The embedded bus TCP wire address the connect targeted.

§detail: String

Exact SDK connect failure.

§

AnnouncerPublish

The application-event announcer failed to publish on the bus. At boot this is a boot failure; at runtime the announcer records the death loudly and the served page shows it by absence of events.

Fields

§channel: String

The application channel the publish targeted.

§detail: String

Exact SDK publish failure.

§

AnnouncerIntakeClosed

A fact was announced after teardown had already closed the announcer’s intake.

§

AnnouncerAlreadyStarted

The announcer pump was started twice or its subscription was already consumed — a host composition error.

§

AnnouncerSpawn

The announcer pump thread could not be spawned.

Fields

§source: Error

Underlying spawn failure.

§

AnnouncerPanicked

The announcer pump thread panicked.

§

Runtime(RuntimeError)

The composed component runtime refused or failed an operation (composition, policy validation, or residue-checked teardown).

§

Registry(RegistryError)

The component registry refused or failed an operation.

§

Capability(CapabilityMutationError)

The host capability facade refused an operation.

§

StatusMissing

An installed component vanished from the registry between operations.

Fields

§id: ComponentId

Identity whose snapshot was absent.

§

NotRunning

An installed component did not reach Running after start.

Fields

§id: ComponentId

Identity that failed to reach Running.

§state: LifecycleState

Observed lifecycle state.

§

EventLoggerSpawn

The lifecycle event logger thread could not be spawned.

Fields

§source: Error

Underlying spawn failure.

§

EventLoggerPanicked

The lifecycle event logger thread panicked.

§

TruthRecorderSpawn

The application-truth recorder thread (crate::truth::AppTruth) could not be spawned.

Fields

§source: Error

Underlying spawn failure.

§

TruthRecorderPanicked

The application-truth recorder thread panicked.

§

AssetRoot

The asset directory is unusable as a shell root.

Fields

§path: PathBuf

Configured asset directory.

§detail: String

Exact refusal detail.

§

ConfigContract

The served config would be refused by the shell’s config contract.

Fields

§detail: String

Exact contract refusal and the flag that fixes it.

§

MissingIndex

The asset directory has no index.html shell entry point.

Fields

§path: PathBuf

Configured asset directory.

§

Bind

Binding the shell listener failed.

Fields

§addr: SocketAddr

Requested socket address.

§source: Error

Underlying bind failure.

§

PageServerUnavailable

A stated [frame].bind page-server address is already in use. The page server binds exactly what [frame].bind states and never silently moves — this is the loud refusal (2026-07-22 portless ruling).

Fields

§addr: SocketAddr

The stated page-server address that could not be bound.

§source: Error

Underlying bind failure.

§

NoFreePagePort

The forward walk from the preferred page-server port found no free port anywhere above it — a genuinely exhausted local port space, never a silent give-up.

Fields

§from: u16

The preferred port the exhausted walk started from.

§

Serve

The shell server failed while serving.

Fields

§source: Error

Underlying accept/serve failure.

§

AsyncRuntime

The async runtime hosting the shell server could not be built.

Fields

§source: Error

Underlying builder failure.

§

ShutdownSignal

The shutdown signal handler could not be installed or failed.

Fields

§source: Error

Underlying signal failure.

§

ProcessResidue

Ordered shutdown left live processes on the scheduler.

Fields

§count: usize

Processes still alive after the ordered drain.

§

SynchronizationPoisoned

Host-internal synchronization was poisoned by a panic.

§

ConfigRead

The frame configuration file could not be read.

Fields

§path: PathBuf

Configured frame.toml path.

§source: Error

Underlying read failure.

§

ConfigParse

The frame configuration file could not be parsed as TOML into the [frame] + [bus] schema (or [liminal], the deprecated alias of [bus] during the compatibility window), or its bus section was missing or doubled.

Fields

§path: PathBuf

Configured frame.toml path.

§detail: String

Exact TOML/deserialization refusal.

§

LiminalConfig

The embedded [bus] config failed liminal’s own validation.

Fields

§source: ServerError

Exact typed liminal validation failure.

§

EmbeddedModeUnsupported

The [bus] config selects a shape the embedded frame server does not faithfully orchestrate (cluster, worker-front-door, or an absent WebSocket transport). Loud refusal at startup, never a silent downgrade.

Fields

§detail: String

Which shape was refused and why.

§

LiminalComponent

A liminal component failed to bind or boot. Frame-host exits nonzero with the component named — never a half-up stack.

Fields

§component: &'static str

Which liminal component failed (health endpoint, connection services, connection supervisor, TCP listener, WebSocket listener).

§source: ServerError

Exact typed liminal failure.

§

LiminalShutdown

Liminal’s graceful shutdown sequence failed.

Fields

§source: ServerError

Exact typed liminal shutdown failure.

§

LiminalExited

The embedded liminal component stopped answering at runtime while the host was still meant to be serving. A dead server behind a healthy host is forbidden: frame-host tears down and exits nonzero.

Fields

§detail: String

Which liveness probe failed and against which address.

§

DocumentContent

The [document] initial-content file could not be read.

Fields

§path: PathBuf

The resolved content path.

§source: Error

Underlying read failure.

§

DocumentState

The document service’s frame-state store refused an operation.

Fields

§source: StateError

Exact typed frame-state failure.

§

DocumentService

The document service refused to boot, run, or shut down.

Fields

§source: DocServiceError

Exact typed service failure.

§

DocumentAuthorityConfig

The document authority’s declared configuration was refused.

Fields

§source: ConfigError

Exact typed configuration refusal.

§

DocumentBusClient

The document binding’s bus client (publisher or authoring subscriber) failed to connect or subscribe.

Fields

§component: &'static str

Which client failed (feed publisher, authoring subscriber).

§detail: String

Exact SDK failure detail.

§

AuthoringPump

The authoring pump thread could not start or join.

Fields

§detail: String

What failed.

Trait Implementations§

Source§

impl Debug for HostError

Source§

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

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

impl Display for HostError

Source§

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

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

impl Error for HostError

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<CapabilityMutationError> for HostError

Source§

fn from(source: CapabilityMutationError) -> Self

Converts to this type from the input type.
Source§

impl From<RegistryError> for HostError

Source§

fn from(source: RegistryError) -> Self

Converts to this type from the input type.
Source§

impl From<RuntimeError> for HostError

Source§

fn from(source: RuntimeError) -> 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<ST, DT> CastableFrom<ST, Initialized, Initialized> for DT
where ST: ?Sized, DT: ?Sized,

Source§

impl<ST, DT> CastableFrom<ST, Uninit, Uninit> for DT
where ST: ?Sized, DT: ?Sized,

Source§

impl<T> From<T> for T

Source§

fn from(t: T) -> T

Returns the argument unchanged.

Source§

impl<A, B, T> HttpServerConnExec<A, B> for T
where B: Body,

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> Read<Exclusive, BecauseExclusive> for T
where T: ?Sized,

Source§

impl<T> Same for T

Source§

type Output = T

Should always be Self
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