Skip to main content

LostAuthorityTestimony

Struct LostAuthorityTestimony 

Source
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

Source

pub const fn kind(&self) -> LostAuthorityKind

Reports which destroyed authority this testimony records.

Trait Implementations§

Source§

impl Debug for LostAuthorityTestimony

Source§

fn fmt(&self, f: &mut Formatter<'_>) -> Result

Formats the value using the given formatter. Read more
Source§

impl Eq for LostAuthorityTestimony

Source§

impl PartialEq for LostAuthorityTestimony

Source§

fn eq(&self, other: &LostAuthorityTestimony) -> bool

Equality operator ==. Read more
1.0.0 (const: unstable) · Source§

fn ne(&self, other: &Rhs) -> bool

Inequality operator !=. Read more
Source§

impl StructuralPartialEq for LostAuthorityTestimony

Auto Trait Implementations§

Blanket Implementations§

Source§

impl<T> Any for T
where T: 'static + ?Sized,

Source§

fn type_id(&self) -> TypeId

Gets the TypeId of self. Read more
Source§

impl<T> Borrow<T> for T
where T: ?Sized,

Source§

fn borrow(&self) -> &T

Immutably borrows from an owned value. Read more
Source§

impl<T> BorrowMut<T> for T
where T: ?Sized,

Source§

fn borrow_mut(&mut self) -> &mut T

Mutably borrows from an owned value. Read more
Source§

impl<T> From<T> for T

Source§

fn from(t: T) -> T

Returns the argument unchanged.

Source§

impl<T, U> Into<U> for T
where U: From<T>,

Source§

fn into(self) -> U

Calls U::from(self).

That is, this conversion is whatever the implementation of From<T> for U chooses to do.

Source§

impl<T, U> TryFrom<U> for T
where U: Into<T>,

Source§

type Error = Infallible

The type returned in the event of a conversion error.
Source§

fn try_from(value: U) -> Result<T, <T as TryFrom<U>>::Error>

Performs the conversion.
Source§

impl<T, U> TryInto<U> for T
where U: TryFrom<T>,

Source§

type Error = <U as TryFrom<T>>::Error

The type returned in the event of a conversion error.
Source§

fn try_into(self) -> Result<U, <U as TryFrom<T>>::Error>

Performs the conversion.