pub trait ExtensionEventSink: Send + Sync {
// Required method
fn emit(&self, event: Event);
}Expand description
Host-provided fire-and-forget sink for extension-generated events.
Extensions construct protocol events with the correlation id appropriate for the callback they are handling, then leave persistence, ordering, transport fanout, and logging decisions to the host.
Required Methods§
Dyn Compatibility§
This trait is dyn compatible.
In older versions of Rust, dyn compatibility was called "object safety".