pub trait EventPublisher: Send + Sync {
// Required method
fn publish_session_event(
&self,
name: &str,
session_id: Uuid,
changeset_id: Uuid,
reason: &str,
);
}Expand description
Hook interface for emitting workspace lifecycle events.
Implemented by dk-protocol (forwarding to its event bus) in the live server;
defaults to a no-op for pre-existing constructors and tests.
Required Methods§
fn publish_session_event( &self, name: &str, session_id: Uuid, changeset_id: Uuid, reason: &str, )
Dyn Compatibility§
This trait is dyn compatible.
In older versions of Rust, dyn compatibility was called "object safety".