Skip to main content

EventSink

Type Alias EventSink 

Source
pub type EventSink = Box<dyn Fn(AgentEvent) + Send + Sync>;
Expand description

A sink for AgentEvents.

This is a boxed closure so callers can wire up whatever they like (printing, channels, metrics) without the crate dictating a concurrency model.

Aliased Typeยง

pub struct EventSink(/* private fields */);