Skip to main content

SessionTracker

Trait SessionTracker 

Source
pub trait SessionTracker {
    // Required methods
    fn refresh(&mut self) -> Result<bool>;
    fn summary(&self) -> &SessionSummary;
    fn path(&self) -> &Path;

    // Provided method
    fn refresh_all(&mut self) -> Result<()> { ... }
}

Required Methods§

Source

fn refresh(&mut self) -> Result<bool>

Ingest whatever was appended since the last call. Returns true when there is still unread data (the byte budget was exhausted).

Source

fn summary(&self) -> &SessionSummary

Source

fn path(&self) -> &Path

Provided Methods§

Source

fn refresh_all(&mut self) -> Result<()>

Ingest the whole file, however many refreshes that takes. For a one-shot read such as an export; the live collector spreads a large transcript over several ticks instead.

Dyn Compatibility§

This trait is dyn compatible.

In older versions of Rust, dyn compatibility was called "object safety".

Implementors§