Skip to main content

EventSinkTransport

Trait EventSinkTransport 

Source
pub trait EventSinkTransport: Send + Sync {
    // Required method
    fn emit_event(&self, event: EventFrame) -> Result<(), SidecarError>;
}
Expand description

Fire-and-forget live event sink. Lets an extension emit a session/update (or any other) event frame to the host mid-dispatch, instead of having to return it from the dispatch and wait for the whole request to resolve before the stdio loop flushes it. Mirrors SidecarRequestTransport, but events have no response, no request id, and no timeout — they are written to the same outbound stdout channel the batch path uses.

Required Methods§

Dyn Compatibility§

This trait is dyn compatible.

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

Implementors§