Skip to main content

ChatCapture

Trait ChatCapture 

Source
pub trait ChatCapture: Send {
    // Required methods
    fn capture_recent_messages(&mut self) -> Vec<ChatMessage>;
    fn name(&self) -> &'static str;
}
Expand description

Trait for chat message capture. Each implementation provides a single source of truth for chat messages, eliminating the double-processing bug where both LogMonitor and ChatCapture detected the same messages.

Required Methods§

Source

fn capture_recent_messages(&mut self) -> Vec<ChatMessage>

Capture recent chat messages since the last call. Implementations should use deduplication to avoid processing the same message twice.

Source

fn name(&self) -> &'static str

Returns the name of this capture implementation for logging.

Implementors§