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§
Sourcefn refresh(&mut self) -> Result<bool>
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).
fn summary(&self) -> &SessionSummary
fn path(&self) -> &Path
Provided Methods§
Sourcefn refresh_all(&mut self) -> Result<()>
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".