Skip to main content

EVENTS_FANOUT_CLASS_NAME

Constant EVENTS_FANOUT_CLASS_NAME 

Source
pub const EVENTS_FANOUT_CLASS_NAME: &str = "__EventsFanout";
Expand description

Events track, slice 0 (spine #936, ADR 0284): the class name of a publishing context’s fan-out Durable Object (emitter::events_fanout). Shared with emitter::workers (the Env field name + deps. __eventsDispatch call it drives) and emitter::events_fanout (the class this name must actually export) so the three can never drift apart.

Double-underscore-prefixed, matching every other compiler-synthesised identifier in emitted output (__events, __eventsDispatch, __makeLedger, …) — a Bynk agent name can never start with _ (a parse error, checked directly: agent _Foo { … } fails with expected identifier after \agent`, found `_``), so an agent coincidentally named the same as this synthetic class is structurally impossible, not merely unlikely.