pub enum Fidelity {
ByteLossless,
ValueLossless,
Semantic,
}Expand description
How faithfully a reconstruction reproduces its source.
One vocabulary for every surface that has to state what it gave up. It was
introduced for session ARTIFACTS (harness.v1.sessions.export reports a
level plus a named residue list); session LOADS report the same pair,
because a read-only VIEW of a session is allowed to settle for
Fidelity::Semantic where a continuation is not (see
a session loader’s explicitly semantic/read-only mode).
Variants§
ByteLossless
The reconstruction reproduces the source bytes exactly.
ValueLossless
Every value survives; only the container bytes were re-synthesized.
Semantic
Meaning survives; the named residue says exactly what did not.
Implementations§
Source§impl Fidelity
impl Fidelity
Sourcepub fn tolerates_residue(self) -> bool
pub fn tolerates_residue(self) -> bool
Whether this level tolerates named loss.
Only Fidelity::Semantic does — every stricter level must fail
loudly instead of degrading, which is what keeps continuation,
transfer and export guarantees intact.