pub struct EventPublicationKey(/* private fields */);Expand description
Stable deterministic identity for one logical transition’s event publication.
Implementations§
Source§impl EventPublicationKey
impl EventPublicationKey
Sourcepub fn derive(
transition_identity: &str,
ordinal: u32,
scope: &DurableHostEventScope,
event_class: DurableHostEventClass,
) -> SessionStoreResult<Self>
pub fn derive( transition_identity: &str, ordinal: u32, scope: &DurableHostEventScope, event_class: DurableHostEventClass, ) -> SessionStoreResult<Self>
Derive an unambiguous publication key from a transition identity and event ordinal.
The transition identity must itself be stable across retries, for example a durable mutation receipt, admission identity, or sealed run-evidence identity.
§Errors
Returns an error when transition_identity is empty.
Trait Implementations§
Source§impl Clone for EventPublicationKey
impl Clone for EventPublicationKey
Source§fn clone(&self) -> EventPublicationKey
fn clone(&self) -> EventPublicationKey
Returns a duplicate of the value. Read more
1.0.0 (const: unstable) · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source. Read moreSource§impl Debug for EventPublicationKey
impl Debug for EventPublicationKey
Source§impl<'de> Deserialize<'de> for EventPublicationKey
impl<'de> Deserialize<'de> for EventPublicationKey
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 EventPublicationKey
Source§impl Hash for EventPublicationKey
impl Hash for EventPublicationKey
Source§impl Ord for EventPublicationKey
impl Ord for EventPublicationKey
Source§fn cmp(&self, other: &EventPublicationKey) -> Ordering
fn cmp(&self, other: &EventPublicationKey) -> Ordering
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
Source§impl PartialEq for EventPublicationKey
impl PartialEq for EventPublicationKey
Source§impl PartialOrd for EventPublicationKey
impl PartialOrd for EventPublicationKey
Source§impl Serialize for EventPublicationKey
impl Serialize for EventPublicationKey
impl StructuralPartialEq for EventPublicationKey
Auto Trait Implementations§
impl Freeze for EventPublicationKey
impl RefUnwindSafe for EventPublicationKey
impl Send for EventPublicationKey
impl Sync for EventPublicationKey
impl Unpin for EventPublicationKey
impl UnsafeUnpin for EventPublicationKey
impl UnwindSafe for EventPublicationKey
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