Skip to main content

Module event

Module event 

Source
Expand description

KernelEvent and supporting enums.

#[non_exhaustive] everywhere: external matchers cannot wildcard-match, so adding a variant is not breaking for external consumers. The clippy::wildcard_enum_match_arm = deny lint enforces this within the crate as well.

Structs§

EventMask
Event-class filter for observer registration. One bit per KernelEvent variant; an observer registered with a mask only receives events whose variant bit is set. EventMask::ALL (the Default) matches every variant — backward-compatible with the unfiltered Kernel::register_observer path.
ObserverHandle
Stable observer registration handle returned by Kernel::register_observer.

Enums§

DeferReason
Why a scheduled action was deferred to the next tick.
KernelEvent
Top-level kernel-emitted event. Routed through observer filters and recorded in WAL (chunks 3b/c+).
SignalDropReason
Why a SendSignal op was dropped before delivery.