Skip to main content

ParticipantConversationState

Struct ParticipantConversationState 

Source
pub struct ParticipantConversationState<EF, V, LF, D> { /* private fields */ }
Expand description

Fully validated whole-conversation participant state.

This state can execute restored edge authority. It has no public constructor and its fields are private: the sole producer is ParticipantConversationRestore::restore, so possession of this value proves the complete snapshot validated jointly.

use liminal_protocol::lifecycle::ParticipantConversationState;

fn fabricate() {
    let _ = ParticipantConversationState::<[u8; 4], [u8; 4], [u8; 4], [u8; 4]> {
        participants: unreachable!(),
        frontiers: unreachable!(),
        closure: unreachable!(),
    };
}

Implementations§

Source§

impl<EF, V, LF, D> ParticipantConversationState<EF, V, LF, D>

Source

pub fn participants(&self) -> &[RestoredParticipantLifecycle<EF, V, LF, D>]

Borrows every restored participant and tombstone.

Source

pub const fn frontiers(&self) -> &ClaimFrontiers

Borrows the finalized claim frontiers.

Source

pub const fn closure(&self) -> ClosureState

Returns the exact closure state.

Source

pub fn into_parts( self, ) -> (Vec<RestoredParticipantLifecycle<EF, V, LF, D>>, ClaimFrontiers, ClosureState)

Consumes the validated state into its participant, frontier, and closure components.

Decomposition is one-way: no public path recombines components into this validated form, so values split here cannot be spliced with components restored from another snapshot.

Trait Implementations§

Source§

impl<EF: Debug, V: Debug, LF: Debug, D: Debug> Debug for ParticipantConversationState<EF, V, LF, D>

Source§

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

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

impl<EF: Eq, V: Eq, LF: Eq, D: Eq> Eq for ParticipantConversationState<EF, V, LF, D>

Source§

impl<EF: PartialEq, V: PartialEq, LF: PartialEq, D: PartialEq> PartialEq for ParticipantConversationState<EF, V, LF, D>

Source§

fn eq(&self, other: &ParticipantConversationState<EF, V, LF, D>) -> bool

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

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

Inequality operator !=. Read more
Source§

impl<EF: PartialEq, V: PartialEq, LF: PartialEq, D: PartialEq> StructuralPartialEq for ParticipantConversationState<EF, V, LF, D>

Auto Trait Implementations§

§

impl<EF, V, LF, D> Freeze for ParticipantConversationState<EF, V, LF, D>

§

impl<EF, V, LF, D> RefUnwindSafe for ParticipantConversationState<EF, V, LF, D>

§

impl<EF, V, LF, D> Send for ParticipantConversationState<EF, V, LF, D>
where V: Send, EF: Send, D: Send, LF: Send,

§

impl<EF, V, LF, D> Sync for ParticipantConversationState<EF, V, LF, D>
where V: Sync, EF: Sync, D: Sync, LF: Sync,

§

impl<EF, V, LF, D> Unpin for ParticipantConversationState<EF, V, LF, D>
where V: Unpin, EF: Unpin, D: Unpin, LF: Unpin,

§

impl<EF, V, LF, D> UnsafeUnpin for ParticipantConversationState<EF, V, LF, D>

§

impl<EF, V, LF, D> UnwindSafe for ParticipantConversationState<EF, V, LF, D>
where V: UnwindSafe, EF: UnwindSafe, D: UnwindSafe, LF: UnwindSafe,

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.