pub struct TranscriptWatcher { /* private fields */ }Expand description
Transcript watcher that monitors JSONL files for changes
Implementations§
Source§impl TranscriptWatcher
impl TranscriptWatcher
Sourcepub fn new(registry: TranscriptRegistry) -> Self
pub fn new(registry: TranscriptRegistry) -> Self
Create a new TranscriptWatcher
Sourcepub fn start_watching(&self, pane_id: &str, path: &str, session_id: &str)
pub fn start_watching(&self, pane_id: &str, path: &str, session_id: &str)
Start watching a transcript file for a given pane_id
Performs initial tail read, then subsequent calls to poll_updates()
will read new content.
Sourcepub fn stop_watching(&self, pane_id: &str)
pub fn stop_watching(&self, pane_id: &str)
Stop watching a transcript file
Sourcepub fn poll_updates(&self)
pub fn poll_updates(&self)
Poll for updates on all watched transcripts
Reads new lines since last_read_pos and updates preview text.
Sourcepub fn registry(&self) -> &TranscriptRegistry
pub fn registry(&self) -> &TranscriptRegistry
Get the shared registry
Auto Trait Implementations§
impl Freeze for TranscriptWatcher
impl !RefUnwindSafe for TranscriptWatcher
impl Send for TranscriptWatcher
impl Sync for TranscriptWatcher
impl Unpin for TranscriptWatcher
impl UnsafeUnpin for TranscriptWatcher
impl !UnwindSafe for TranscriptWatcher
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
Source§impl<T> Downcast for Twhere
T: Any,
impl<T> Downcast for Twhere
T: Any,
Source§fn into_any(self: Box<T>) -> Box<dyn Any>
fn into_any(self: Box<T>) -> Box<dyn Any>
Convert
Box<dyn Trait> (where Trait: Downcast) to Box<dyn Any>. Box<dyn Any> can
then be further downcast into Box<ConcreteType> where ConcreteType implements Trait.Source§fn into_any_rc(self: Rc<T>) -> Rc<dyn Any>
fn into_any_rc(self: Rc<T>) -> Rc<dyn Any>
Convert
Rc<Trait> (where Trait: Downcast) to Rc<Any>. Rc<Any> can then be
further downcast into Rc<ConcreteType> where ConcreteType implements Trait.Source§fn as_any(&self) -> &(dyn Any + 'static)
fn as_any(&self) -> &(dyn Any + 'static)
Convert
&Trait (where Trait: Downcast) to &Any. This is needed since Rust cannot
generate &Any’s vtable from &Trait’s.Source§fn as_any_mut(&mut self) -> &mut (dyn Any + 'static)
fn as_any_mut(&mut self) -> &mut (dyn Any + 'static)
Convert
&mut Trait (where Trait: Downcast) to &Any. This is needed since Rust cannot
generate &mut Any’s vtable from &mut Trait’s.