#[non_exhaustive]pub enum AuditMode {
Full,
Last(usize),
Off,
}Expand description
How many AuditTrail entries a Message keeps.
The engine records one entry per executed task, and in a looping workflow
that is one per task per sweep, all kept until process_message returns.
A host that never reads Message::audit_trail (because it traces, or
reads metadata.progress) can bound or drop them. Set it with
MessageBuilder::audit_mode.
The mode changes only what is kept. Status classification, error
records, metadata.progress, halting and the observer are identical in
every mode.
Variants (Non-exhaustive)§
This enum is marked as non-exhaustive
Full
Keep every entry. The default.
Last(usize)
Keep the most recent n entries. Last(0) keeps none, like
Self::Off.
Older entries are dropped in batches, so the message holds at most
2n entries in memory while Message::audit_trail always shows the
last n.
Off
Keep no entries.
A trace’s per-step changes are read from the task’s own entry, so
they come back empty in this mode, as they do with capture_changes
off. Turn capture_changes off too: with no entry to hold them, the
captured copies would be made and dropped for nothing.