pub struct CeremonyExecutionLink { /* private fields */ }Expand description
What became of one composed ceremony inside one run.
The pin travels with the link rather than being looked up again, so a run inspected long afterwards still says which bytes it started, even if the design has moved on since.
Implementations§
Source§impl CeremonyExecutionLink
impl CeremonyExecutionLink
Sourcepub const fn pending(pin: DefinitionPin) -> Self
pub const fn pending(pin: DefinitionPin) -> Self
A composition nothing has been done about yet.
Sourcepub fn started(&self, instance_id: CeremonyId, round: LoopRound) -> Self
pub fn started(&self, instance_id: CeremonyId, round: LoopRound) -> Self
The same link, now bound to a real instance.
Sourcepub fn settled(&self, status: LinkStatus) -> Self
pub fn settled(&self, status: LinkStatus) -> Self
The same link, settled in an observed state.
Sourcepub fn reopened(&self) -> Self
pub fn reopened(&self) -> Self
The same link, waiting again for the next round.
The round it has reached travels with it and the instance it had does not: the next round opens a new instance, and keeping the previous identity here would let a retry reopen a ceremony that already finished.
Sourcepub fn skipped(&self, reason: UnavailabilityReason) -> Self
pub fn skipped(&self, reason: UnavailabilityReason) -> Self
The same link, skipped because somebody it needed was missing.
pub const fn instance_id(&self) -> Option<&CeremonyId>
pub const fn pin(&self) -> &DefinitionPin
pub const fn status(&self) -> LinkStatus
pub const fn round(&self) -> LoopRound
pub const fn skipped_because(&self) -> Option<&UnavailabilityReason>
Trait Implementations§
Source§impl Clone for CeremonyExecutionLink
impl Clone for CeremonyExecutionLink
Source§impl Debug for CeremonyExecutionLink
impl Debug for CeremonyExecutionLink
Source§impl<'de> Deserialize<'de> for CeremonyExecutionLink
impl<'de> Deserialize<'de> for CeremonyExecutionLink
Source§fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
__D: Deserializer<'de>,
fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
__D: Deserializer<'de>,
Deserialize this value from the given Serde deserializer. Read more
impl Eq for CeremonyExecutionLink
Source§impl PartialEq for CeremonyExecutionLink
impl PartialEq for CeremonyExecutionLink
Source§impl Serialize for CeremonyExecutionLink
impl Serialize for CeremonyExecutionLink
impl StructuralPartialEq for CeremonyExecutionLink
Auto Trait Implementations§
impl Freeze for CeremonyExecutionLink
impl RefUnwindSafe for CeremonyExecutionLink
impl Send for CeremonyExecutionLink
impl Sync for CeremonyExecutionLink
impl Unpin for CeremonyExecutionLink
impl UnsafeUnpin for CeremonyExecutionLink
impl UnwindSafe for CeremonyExecutionLink
Blanket Implementations§
Source§impl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
Source§fn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more