Skip to main content

EventSink

Trait EventSink 

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

Consumer of AgentEvents (CLI, TUI, metrics, …).

Required Methods§

Source

fn emit(&self, event: AgentEvent)

Observe an event synchronously. Avoid blocking the execution task.

Dyn Compatibility§

This trait is dyn compatible.

In older versions of Rust, dyn compatibility was called "object safety".

Implementors§