#[non_exhaustive]pub enum KernelEvent {
ActionExecuted {
instance: InstanceId,
action_type: TypeCode,
at: Tick,
},
ActionFailed {
instance: InstanceId,
action_type: TypeCode,
reason: Bytes,
},
EffectFailed {
instance: InstanceId,
reason: Bytes,
},
ObserverPanic {
observer_index: u16,
},
ObserverEvicted {
observer_index: u16,
panic_at_seq: u64,
panic_count_before_eviction: u32,
},
SignalDropped {
target: InstanceId,
route: RouteId,
reason: SignalDropReason,
},
ModuleForceUnloaded {
route_id: RouteId,
live_refs_at_unload: u32,
},
ActionDeferredToNextTick {
action_id: ScheduledActionId,
reason: DeferReason,
},
ObserversFlushed {
barrier_ticket: u64,
event_count: u32,
},
DomainEventEmitted {
instance: InstanceId,
actor: Option<EntityId>,
event_type_code: TypeCode,
bytes: Bytes,
},
}Expand description
Top-level kernel-emitted event. Routed through observer filters and recorded in WAL (chunks 3b/c+).
Variants (Non-exhaustive)§
This enum is marked as non-exhaustive
ActionExecuted
An action completed dispatch successfully.
Fields
instance: InstanceIdInstance where the action ran.
ActionFailed
Action compute() failed (panic or error). reason is opaque bytes.
Fields
instance: InstanceIdInstance where the action was attempted.
EffectFailed
Effect application failed during dispatcher.
Fields
instance: InstanceIdInstance where the effect was being applied.
ObserverPanic
Observer panicked during on_event. Bounded payload —
observer_index only, no panic message (covert channel closed).
ObserverEvicted
First-panic eviction (A22).
Fields
SignalDropped
Cross-instance signal dropped (reserved variant for the
SendSignal rate-limit (deferred); constructible today for tests).
Fields
target: InstanceIdTarget instance the signal was destined for.
reason: SignalDropReasonWhy the kernel dropped the signal.
ModuleForceUnloaded
Module force-unloaded via force_unload cap path.
Fields
ActionDeferredToNextTick
Action deferred to the next tick (reserved variant).
Fields
action_id: ScheduledActionIdId of the deferred scheduled action.
reason: DeferReasonWhy the action was deferred.
ObserversFlushed
BestEffort durability barrier flushed pending observer events.
Fields
DomainEventEmitted
Domain Op::EmitEvent produced an event payload.
Trait Implementations§
Source§impl Clone for KernelEvent
impl Clone for KernelEvent
Source§fn clone(&self) -> KernelEvent
fn clone(&self) -> KernelEvent
1.0.0 · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
source. Read more