pub struct ProcessChatCapture { /* private fields */ }Implementations§
Source§impl ProcessChatCapture
impl ProcessChatCapture
pub fn new() -> Result<Self>
Sourcepub fn parse_line(&self, line: &str) -> Option<ChatMessage>
pub fn parse_line(&self, line: &str) -> Option<ChatMessage>
Parse a single line for chat messages. Used by ForegroundProcess to parse stdout lines.
Trait Implementations§
Source§impl ChatCapture for ProcessChatCapture
impl ChatCapture for ProcessChatCapture
Source§fn capture_recent_messages(&mut self) -> Vec<ChatMessage>
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.
Auto Trait Implementations§
impl Freeze for ProcessChatCapture
impl !RefUnwindSafe for ProcessChatCapture
impl Send for ProcessChatCapture
impl Sync for ProcessChatCapture
impl Unpin for ProcessChatCapture
impl UnsafeUnpin for ProcessChatCapture
impl !UnwindSafe for ProcessChatCapture
Blanket Implementations§
Source§impl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
Source§fn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more