pub enum HostStage {
RuntimeInit,
Conversion,
CallbackPanic,
Link,
Load,
Internal,
}Expand description
What the host stack was doing when it failed.
A flat tag enum; callers rarely match on it and read
HostFailure::message instead. Use LeanDiagnosticCode for the
stable, caller-facing failure taxonomy — HostStage is the
host-stack’s internal classification and may grow new variants when
new internal paths are added.
Variants§
RuntimeInit
OnceLock + lean_initialize_* panic-or-failure.
Conversion
First-order ABI value malformed (wrong kind, out of range,
invalid UTF-8, non-scalar char).
CallbackPanic
A Rust panic was contained at a Lean → Rust callback boundary.
Link
Link-time failure (missing symbol, header-digest mismatch).
Load
Load-time failure (dlopen, per-module initializer).
Internal
A pub(crate) invariant tripped. Indicates a bug in lean-rs.
Trait Implementations§
impl Copy for HostStage
impl Eq for HostStage
impl StructuralPartialEq for HostStage
Auto Trait Implementations§
impl Freeze for HostStage
impl RefUnwindSafe for HostStage
impl Send for HostStage
impl Sync for HostStage
impl Unpin for HostStage
impl UnsafeUnpin for HostStage
impl UnwindSafe for HostStage
Blanket Implementations§
Source§impl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
Source§fn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more