Skip to main content

EventEmitter

Trait EventEmitter 

Source
pub trait EventEmitter: Send + Sync {
    // Required method
    fn emit(&self, event: AgentEvent);
}
Expand description

Sink for emitting AgentEvents from inside a LoopMutator. The driver supplies a concrete implementation via LoopCtx::emitter.

Required Methods§

Source

fn emit(&self, event: AgentEvent)

Forward event to all registered observers.

Implementors§