pub trait KernelEventSink:
Debug
+ Send
+ Sync {
// Required method
fn emit(&self, event: EventEnvelope) -> KernelEventFuture<'_>;
// Provided method
fn last_sequence(&self, _session_id: SessionId) -> Option<SessionSequence> { ... }
}Expand description
Awaited observation destination with explicit backpressure.
Required Methods§
Sourcefn emit(&self, event: EventEnvelope) -> KernelEventFuture<'_>
fn emit(&self, event: EventEnvelope) -> KernelEventFuture<'_>
Accepts one canonical event after every prior event has completed.
Provided Methods§
Sourcefn last_sequence(&self, _session_id: SessionId) -> Option<SessionSequence>
fn last_sequence(&self, _session_id: SessionId) -> Option<SessionSequence>
Returns the last accepted sequence for one continuing observation stream.
A sink that does not preserve cursors may return None; a continuing
host stream should retain this value across fresh kernel instances.
Dyn Compatibility§
This trait is dyn compatible.
In older versions of Rust, dyn compatibility was called "object safety".