Expand description
Typed in-Node event bus.
Typed in-Node event bus. Cross-Component signaling per
docs/ENGINE.md §13.1.
Components publish events via the bus; the engine’s bus-event routing pass delivers them to subscribed Components.
Structs§
- OpError
- Op invocation failure detail. Surfaced by the engine when
dispatch_atomicreturnsError the dispatch table lookup misses. Three-field shape:kindis a stable categorical label,reasonis a&'static str(e.g."blocklisted","cooldown") callers can match on,detailis a free-form human-readable description. - Typed
Bus - Typed in-Node event bus. Carries published events from one
poll cycle to the next; the engine’s bus-routing pass drains
the queue and routes to subscribed
NodeSiteIds.
Enums§
- Alloc
Fail Reason - Why a fallible-allocation boundary refused to admit bytes into
engine state. Carried by
WireReceiveErrorKind::AllocationFailedandAppIngressErrorKind::AllocationFailed. - AppEvent
- App-Op-emitted events surfaced as
EngineStep::AppEvent. - AppEvent
Error - Reasons an
AppEvent::emit/AppEvent::notifyconstruction can fail. - AppIngress
Error Kind - Sub-kind discriminator for
InfraEvent::AppIngressError. One top-level variant + sub-kind keeps the bus-topic count down - subscribers route on the variant name and match the sub-kind out of the event’s fields when they need to distinguish allocation failure from budget exhaustion from a per-item cap. - AppIngress
Source - Application-side entry point that raised an
InfraEvent::AppIngressError. Carries the identity the host referenced when the failure occurred so subscribers can correlate the bus event with the original push call. - Infra
Event - Framework-emitted infrastructure events per
docs/ENGINE.md§13.1. - Node
Event - All events that may flow through the in-Node bus.
- OpError
Kind - Op invocation failure kind. a stable categorical
label consumers match on for retry / report / drop policy
decisions without parsing the freeform
OpError::detail. - Wire
Receive Error Kind - Sub-kind discriminator for
InfraEvent::WireReceiveError. One top-level variant + an enum sub-kind keeps the bus-topic count down and lets subscribers route on the variant while matching the sub-kind out of the variant fields - thePeerSuspect/PeerDown/PeerLivetriple pattern is for distinct lifecycle events; these three share lifecycle (one fill, one decode step) and audience (wire-payload integrity).