pub struct EnvironmentHostEventContext {
pub transition_identity: String,
pub scope: DurableHostEventScope,
}Expand description
Stable identity and visibility scope for an environment event projected at commit time.
Fields§
§transition_identity: StringStable identity of the logical environment transition across retries.
scope: DurableHostEventScopeDurable visibility scope for the resulting event.
Implementations§
Source§impl EnvironmentHostEventContext
impl EnvironmentHostEventContext
Sourcepub fn validate(&self) -> SessionStoreResult<()>
pub fn validate(&self) -> SessionStoreResult<()>
Validate stable event identity and scope.
§Errors
Returns an error when the transition or a scoped durable identity is empty.
Sourcepub fn publication(
&self,
attachment: &DurableEnvironmentAttachment,
) -> SessionStoreResult<PendingHostEventPublication>
pub fn publication( &self, attachment: &DurableEnvironmentAttachment, ) -> SessionStoreResult<PendingHostEventPublication>
Project one transaction-final attachment into its exact durable host event.
§Errors
Returns an error when the context, attachment, or projected publication is invalid.
Trait Implementations§
Source§impl Clone for EnvironmentHostEventContext
impl Clone for EnvironmentHostEventContext
Source§fn clone(&self) -> EnvironmentHostEventContext
fn clone(&self) -> EnvironmentHostEventContext
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 EnvironmentHostEventContext
impl Debug for EnvironmentHostEventContext
impl Eq for EnvironmentHostEventContext
impl StructuralPartialEq for EnvironmentHostEventContext
Auto Trait Implementations§
impl Freeze for EnvironmentHostEventContext
impl RefUnwindSafe for EnvironmentHostEventContext
impl Send for EnvironmentHostEventContext
impl Sync for EnvironmentHostEventContext
impl Unpin for EnvironmentHostEventContext
impl UnsafeUnpin for EnvironmentHostEventContext
impl UnwindSafe for EnvironmentHostEventContext
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