pub struct SuccessorCeremonyId(/* private fields */);Expand description
The id of the successor a plan opens, derived from the plan itself.
Derived rather than supplied, for the same reason a child’s id is: the sealing of the plan and the opening of the stream are two appends, and a crash between them has to be resumable. A caller that chose the id could retry with a different one and open a second successor for one plan; a derived id makes the retry land on the stream the first attempt was opening.
The predecessor is spelled out rather than hashed in, so the relation is legible in a store listing without reading a stream.
Implementations§
Source§impl SuccessorCeremonyId
impl SuccessorCeremonyId
pub fn derive( predecessor: &CeremonyId, plan_id: &IdempotencyKey, ) -> Result<Self, DomainError>
pub const fn as_ceremony_id(&self) -> &CeremonyId
pub fn into_ceremony_id(self) -> CeremonyId
Trait Implementations§
Source§impl Clone for SuccessorCeremonyId
impl Clone for SuccessorCeremonyId
Source§impl Debug for SuccessorCeremonyId
impl Debug for SuccessorCeremonyId
impl Eq for SuccessorCeremonyId
Source§impl PartialEq for SuccessorCeremonyId
impl PartialEq for SuccessorCeremonyId
impl StructuralPartialEq for SuccessorCeremonyId
Auto Trait Implementations§
impl Freeze for SuccessorCeremonyId
impl RefUnwindSafe for SuccessorCeremonyId
impl Send for SuccessorCeremonyId
impl Sync for SuccessorCeremonyId
impl Unpin for SuccessorCeremonyId
impl UnsafeUnpin for SuccessorCeremonyId
impl UnwindSafe for SuccessorCeremonyId
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