Skip to main content

ParticipantLifecycleView

Enum ParticipantLifecycleView 

Source
pub enum ParticipantLifecycleView<'a, EF, V, LF, D> {
    Live {
        member: &'a LiveMember<EF>,
        binding: &'a BindingState,
        binding_origin: Option<&'a BindingOrigin>,
        detach_cell: &'a DetachCell<D>,
    },
    Retired(&'a RetiredIdentity<EF, V, LF>),
}
Expand description

One participant’s live state, lent by reference to be described.

It holds references only, so a binding can lend the values it keeps but cannot make one: every referenced value is itself produced only by the protocol’s own transitions or restores.

Variants§

§

Live

A live member with its atomically paired slots.

Fields

§member: &'a LiveMember<EF>

Membership and terminal history.

§binding: &'a BindingState

Binding slot.

§binding_origin: Option<&'a BindingOrigin>

Current or last binding’s producer-emitted origin, when a binding has existed.

§detach_cell: &'a DetachCell<D>

Four-state detach replay cell.

§

Retired(&'a RetiredIdentity<EF, V, LF>)

A permanent tombstone.

Implementations§

Source§

impl<EF, V, LF, D> ParticipantLifecycleView<'_, EF, V, LF, D>

Source

pub const fn participant_id(&self) -> ParticipantId

The permanent participant id the lent state belongs to.

Trait Implementations§

Source§

impl<'a, EF: Debug, V: Debug, LF: Debug, D: Debug> Debug for ParticipantLifecycleView<'a, EF, V, LF, D>

Source§

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

Formats the value using the given formatter. Read more

Auto Trait Implementations§

§

impl<'a, EF, V, LF, D> Freeze for ParticipantLifecycleView<'a, EF, V, LF, D>
where &'a LiveMember<EF>: Freeze, &'a DetachCell<D>: Freeze, &'a RetiredIdentity<EF, V, LF>: Freeze,

§

impl<'a, EF, V, LF, D> RefUnwindSafe for ParticipantLifecycleView<'a, EF, V, LF, D>

§

impl<'a, EF, V, LF, D> Send for ParticipantLifecycleView<'a, EF, V, LF, D>
where &'a LiveMember<EF>: Send, &'a DetachCell<D>: Send, &'a RetiredIdentity<EF, V, LF>: Send,

§

impl<'a, EF, V, LF, D> Sync for ParticipantLifecycleView<'a, EF, V, LF, D>
where &'a LiveMember<EF>: Sync, &'a DetachCell<D>: Sync, &'a RetiredIdentity<EF, V, LF>: Sync,

§

impl<'a, EF, V, LF, D> Unpin for ParticipantLifecycleView<'a, EF, V, LF, D>
where &'a LiveMember<EF>: Unpin, &'a DetachCell<D>: Unpin, &'a RetiredIdentity<EF, V, LF>: Unpin,

§

impl<'a, EF, V, LF, D> UnsafeUnpin for ParticipantLifecycleView<'a, EF, V, LF, D>
where &'a LiveMember<EF>: UnsafeUnpin, &'a DetachCell<D>: UnsafeUnpin, &'a RetiredIdentity<EF, V, LF>: UnsafeUnpin,

§

impl<'a, EF, V, LF, D> UnwindSafe for ParticipantLifecycleView<'a, EF, V, LF, D>
where &'a LiveMember<EF>: UnwindSafe, &'a DetachCell<D>: UnwindSafe, &'a RetiredIdentity<EF, V, 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 = !

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.