pub struct ExecutionMetadata { /* private fields */ }Expand description
Metadata that identifies one workflow execution attempt.
Implementations§
Source§impl ExecutionMetadata
impl ExecutionMetadata
Sourcepub const fn new(execution_id: ExecutionId, attempt: ExecutionAttempt) -> Self
pub const fn new(execution_id: ExecutionId, attempt: ExecutionAttempt) -> Self
Create execution metadata for an explicit attempt.
Sourcepub const fn first_attempt(execution_id: ExecutionId) -> Self
pub const fn first_attempt(execution_id: ExecutionId) -> Self
Create execution metadata for the first attempt.
Sourcepub const fn execution_id(&self) -> &ExecutionId
pub const fn execution_id(&self) -> &ExecutionId
Identifier for this workflow execution.
Sourcepub const fn attempt(&self) -> ExecutionAttempt
pub const fn attempt(&self) -> ExecutionAttempt
One-based attempt for this workflow execution.
Trait Implementations§
Source§impl Clone for ExecutionMetadata
impl Clone for ExecutionMetadata
Source§fn clone(&self) -> ExecutionMetadata
fn clone(&self) -> ExecutionMetadata
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 ExecutionMetadata
impl Debug for ExecutionMetadata
Source§impl PartialEq for ExecutionMetadata
impl PartialEq for ExecutionMetadata
Source§fn eq(&self, other: &ExecutionMetadata) -> bool
fn eq(&self, other: &ExecutionMetadata) -> bool
Tests for
self and other values to be equal, and is used by ==.impl Eq for ExecutionMetadata
impl StructuralPartialEq for ExecutionMetadata
Auto Trait Implementations§
impl Freeze for ExecutionMetadata
impl RefUnwindSafe for ExecutionMetadata
impl Send for ExecutionMetadata
impl Sync for ExecutionMetadata
impl Unpin for ExecutionMetadata
impl UnsafeUnpin for ExecutionMetadata
impl UnwindSafe for ExecutionMetadata
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
Source§impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
Source§impl<T> Instrument for T
impl<T> Instrument for T
Source§fn instrument(self, _span: NoopSpan) -> Self
fn instrument(self, _span: NoopSpan) -> Self
Instruments this future with a span (no-op when disabled).
Source§fn in_current_span(self) -> Self
fn in_current_span(self) -> Self
Instruments this future with the current span (no-op when disabled).