pub struct ActivityStreamKey {
pub workflow_id: WorkflowId,
pub activity_id: ActivityId,
pub attempt: u32,
}Expand description
The durable key of one observability stream: a (workflow, activity, attempt)
triple. Every ActivityRecord for one running agent attempt shares this key
and is ordered by store_seq within it.
Fields§
§workflow_id: WorkflowIdThe workflow the activity belongs to.
activity_id: ActivityIdThe activity within the workflow.
attempt: u32The attempt number — the third key axis (NOI-0). Two attempts of one activity are DISTINCT streams; a within-attempt failover shares one stream (so a dying + adopting worker’s events dedupe), while a retry is a new attempt and therefore a new stream.
Implementations§
Source§impl ActivityStreamKey
impl ActivityStreamKey
Sourcepub const fn new(
workflow_id: WorkflowId,
activity_id: ActivityId,
attempt: u32,
) -> Self
pub const fn new( workflow_id: WorkflowId, activity_id: ActivityId, attempt: u32, ) -> Self
Build a stream key from its three components.
Sourcepub fn of(event: &ActivityEvent) -> Self
pub fn of(event: &ActivityEvent) -> Self
The stream key an ActivityEvent belongs to.
Trait Implementations§
Source§impl Clone for ActivityStreamKey
impl Clone for ActivityStreamKey
Source§fn clone(&self) -> ActivityStreamKey
fn clone(&self) -> ActivityStreamKey
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 ActivityStreamKey
impl Debug for ActivityStreamKey
impl Eq for ActivityStreamKey
Source§impl Hash for ActivityStreamKey
impl Hash for ActivityStreamKey
Source§impl PartialEq for ActivityStreamKey
impl PartialEq for ActivityStreamKey
impl StructuralPartialEq for ActivityStreamKey
Auto Trait Implementations§
impl Freeze for ActivityStreamKey
impl RefUnwindSafe for ActivityStreamKey
impl Send for ActivityStreamKey
impl Sync for ActivityStreamKey
impl Unpin for ActivityStreamKey
impl UnsafeUnpin for ActivityStreamKey
impl UnwindSafe for ActivityStreamKey
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