pub struct EffectId(/* private fields */);Expand description
A deterministic, content-addressed identity for one logical effect within a run scope.
Derived — never minted — by derive_effect_id: the same (scope, kind, input hash, idempotency key) tuple always yields the same id, so a
recovered run re-derives the id of the effect it was about to perform and
asks the journal whether a receipt already exists for it. That lookup is
what turns “retry carefully” into “do not re-execute what already
committed” — exactly-once business outcomes where the effect protocol
supports it, never a pretend exactly-once execution.
Transparent newtype over the lowercase hex digest: serializes as a bare
string, consistent with crate::record::ArtifactRef.
Implementations§
Trait Implementations§
Source§impl<'de> Deserialize<'de> for EffectId
impl<'de> Deserialize<'de> for EffectId
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 EffectId
Source§impl Ord for EffectId
impl Ord for EffectId
1.21.0 (const: unstable) · Source§fn max(self, other: Self) -> Selfwhere
Self: Sized,
fn max(self, other: Self) -> Selfwhere
Self: Sized,
Compares and returns the maximum of two values. Read more
1.21.0 (const: unstable) · Source§fn min(self, other: Self) -> Selfwhere
Self: Sized,
fn min(self, other: Self) -> Selfwhere
Self: Sized,
Compares and returns the minimum of two values. Read more
Source§impl PartialOrd for EffectId
impl PartialOrd for EffectId
impl StructuralPartialEq for EffectId
Auto Trait Implementations§
impl Freeze for EffectId
impl RefUnwindSafe for EffectId
impl Send for EffectId
impl Sync for EffectId
impl Unpin for EffectId
impl UnsafeUnpin for EffectId
impl UnwindSafe for EffectId
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