#[non_exhaustive]pub struct Report {
pub results: u64,
pub released: Vec<EntryId>,
pub expired: u64,
pub invalid: u64,
pub abandoned: u64,
}Expand description
What a worker did before it stopped.
use legit_streams::Report;
let report = Report::default();
assert_eq!(report.results, 0);Fields (Non-exhaustive)§
This struct is marked as non-exhaustive
Struct { .. } syntax; cannot be matched against without a wildcard ..; and struct update syntax will not work.results: u64How many results the worker wrote, errors included.
released: Vec<EntryId>The entries the worker released to other workers rather than answering: tasks still
running when the shutdown grace ran out, tasks delivered after the stop, and tasks its
handler abandoned. Always empty for a FastWorker, which never
releases.
expired: u64Fast-lane entries deleted unanswered because their deadline_ms had passed when they were
read. Always 0 for a Worker.
invalid: u64Fast-lane entries deleted unanswered because their reply_to isn’t the reply key of their
task_id. Always 0 for a Worker.
abandoned: u64Fast-lane tasks answered with an INTERNAL error because their handler abandoned them,
or because no thread could be started to run them; Report::results counts their
replies too. Always 0 for a Worker.