EventSink

Trait EventSink 

Source
pub trait EventSink {
    // Required method
    fn emit(&self, event: &FabricEvent);
}
Expand description

Trait for consuming fabric events.

Implementations decide what to do with events — log them, store them, forward them to an external system, or discard them.

Built-in implementations:

Optional feature-gated implementations:

  • JsonEventSink — one-line JSON to stdout (requires json-log feature).

Required Methods§

Source

fn emit(&self, event: &FabricEvent)

Consume an event. Implementations should not block.

Implementors§

Source§

impl EventSink for EventRingBuffer

Source§

impl EventSink for NullSink

Source§

impl EventSink for StdoutSink

Available on crate feature std only.