Module event

Module event 

Source
Expand description

Event system for fabric observability.

The FabricEvent enum represents all observable events in the fabric. Events are pushed to an EventSink implementation — either stored in an EventRingBuffer for later inspection, or forwarded to sinks like StdoutSink for immediate output.

Structs§

EventRingBuffer
Fixed-size ring buffer for storing recent events.
EventRingIter
Iterator over events in an EventRingBuffer.
NullSink
A sink that discards all events. Default no_std sink.
StdoutSink
A sink that prints events to stdout.

Enums§

FabricEvent
An observable fabric event.
OpType
Data-plane operation types.
ResourceType
Resource types tracked by the observability system.
RewritePhase
Rewrite plan phases.

Traits§

EventSink
Trait for consuming fabric events.

Functions§

emit_event
Emit an event to the global sink (if one has been registered via set_global_sink). No-op if no sink is registered or if the std feature is disabled.
set_global_sink
Register a process-wide EventSink.