Skip to main content

ExtensionEventSink

Trait ExtensionEventSink 

Source
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§

Source

fn emit(&self, event: Event)

Queue one protocol event for host-owned delivery.

Dyn Compatibility§

This trait is dyn compatible.

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

Implementors§