pub trait RuntimeEventSink:
Send
+ Sync
+ Debug {
// Required method
fn emit(&self, event: TraverseEvent) -> Result<(), EventError>;
}Expand description
Narrow runtime boundary for publishing lifecycle envelopes.
The runtime depends on this seam rather than a concrete broker so embedders can choose an in-memory broker, durable broker, or a no-op delivery policy.
Required Methods§
Sourcefn emit(&self, event: TraverseEvent) -> Result<(), EventError>
fn emit(&self, event: TraverseEvent) -> Result<(), EventError>
Deliver one already-materialized runtime lifecycle envelope.
§Errors
Implementations return an error when the configured delivery mechanism cannot accept the envelope. Runtime execution remains authoritative and reports delivery failures as warnings.
Dyn Compatibility§
This trait is dyn compatible.
In older versions of Rust, dyn compatibility was called "object safety".