pub struct LostAuthorityTestimony { /* private fields */ }Expand description
Serialized, take-once testimony that live process-local authority was
destroyed by crash or restore (LP-CLIENT-GOAL piece 4, r2, 2026-07-18).
The crate mints this atom exactly when a validated cold restore accepts a
state whose live authority did not survive the process. It is persisted in
the aggregate encoding, so encode/decode round-trips it losslessly, and it
is consumed exactly once by the one recovery path that resolves the loss:
resolve_lost_operation_authority for the operation domain and
resolve_lost_reconnect_authority for the reconnect domain. It has no
public constructor, so a fate value that consumes neither a live one-use
correlation nor this testimony is unrepresentable at the API surface.
use liminal_protocol::client::{LostAuthorityKind, LostAuthorityTestimony};
let _forged = LostAuthorityTestimony {
kind: LostAuthorityKind::ReconnectPermit,
};Implementations§
Source§impl LostAuthorityTestimony
impl LostAuthorityTestimony
Sourcepub const fn kind(&self) -> LostAuthorityKind
pub const fn kind(&self) -> LostAuthorityKind
Reports which destroyed authority this testimony records.