pub struct Log { /* private fields */ }Expand description
Logs what moved in an importer’s Snapshot, or an exporter’s Export converted into
one, from one sample to the next, so every front door that runs one reports the same lines.
Feed it a snapshot every INTERVAL of wall time. The caller owns the
timer, since what counts as “now” differs between a CLI, a server, and a test.
Implementations§
Source§impl Log
impl Log
Sourcepub const INTERVAL: Duration
pub const INTERVAL: Duration
How often to sample.
Long enough that every continuous stream delivers many access units in between, so a count that did not move is a stream that stopped rather than one between frames.
Sourcepub fn sample(&mut self, latest: Snapshot)
pub fn sample(&mut self, latest: Snapshot)
Compare a snapshot taken INTERVAL after the last.
Logs an audio or video stream whose access units did not advance since the last sample, once per silence. Sparse data (SCTE-35, ID3, other verbatim PIDs) is counted and not graded. Also logs any stream whose loss counters moved, and PSI sections dropped since.
Sourcepub fn finish(&self, latest: &Snapshot)
pub fn finish(&self, latest: &Snapshot)
Compare the snapshot taken after Import::finish.
It covers less than an interval, so only the losses are compared: the drain at end of input can publish a frame nothing vouched for.