pub trait ActivityManager: Send + Sync {
// Required methods
fn snapshot(&self, stream_id: &str) -> Value;
fn on_activity_op(&self, stream_id: &str, activity_type: &str, op: &Op);
}Expand description
Manager for activity state updates.
Implementations keep per-stream activity state and may emit external events.
Required Methods§
Sourcefn on_activity_op(&self, stream_id: &str, activity_type: &str, op: &Op)
fn on_activity_op(&self, stream_id: &str, activity_type: &str, op: &Op)
Handle an activity operation for a stream.