Skip to main content

LifecycleView

Struct LifecycleView 

Source
pub struct LifecycleView<'a> {
    pub conversation: &'a ParticipantConversation,
    pub lifecycle: Option<ConversationLifecycleView<'a>>,
    pub sealed: Option<SealedLifecycleView<'a>>,
    pub covered_log_sequence: u64,
}
Expand description

What a storage binding lends to LifecycleCapsule::capture: references to the protocol values it holds, and the log position they cover.

Fields§

§conversation: &'a ParticipantConversation

The conversation’s event-sourced shell.

§lifecycle: Option<ConversationLifecycleView<'a>>

The participants, frontiers and closure, once the conversation has any; None before its first enrollment and after its seal.

§sealed: Option<SealedLifecycleView<'a>>

The retired identities and the final ledger watermark, once the conversation is sealed; None otherwise, and never beside lifecycle.

§covered_log_sequence: u64

The last log sequence whose effects these values include.

Trait Implementations§

Source§

impl<'a> Debug for LifecycleView<'a>

Source§

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

Formats the value using the given formatter. Read more

Auto Trait Implementations§

§

impl<'a> Freeze for LifecycleView<'a>

§

impl<'a> RefUnwindSafe for LifecycleView<'a>

§

impl<'a> Send for LifecycleView<'a>

§

impl<'a> Sync for LifecycleView<'a>

§

impl<'a> Unpin for LifecycleView<'a>

§

impl<'a> UnsafeUnpin for LifecycleView<'a>

§

impl<'a> UnwindSafe for LifecycleView<'a>

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 = !

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

fn try_from(value: U) -> Result<T, !>

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.