pub struct InFlightActivity {
pub workflow_id: WorkflowId,
pub activity_id: ActivityId,
pub attempt: u32,
pub completion_token: CompletionToken,
}Expand description
In-flight activity assigned to a connected worker.
Fields§
§workflow_id: WorkflowIdOwning workflow id.
activity_id: ActivityIdCorrelating activity id.
attempt: u32One-based delivery attempt this dispatch carries — the third axis of the
(workflow, activity, attempt) identity the transcript, the intervention
index, and history all key on.
It is NOT part of the tracker’s key: a completion is addressed by the worker, workflow, and activity together, and widening the key would break that addressing. It is carried so a reader asking about a SPECIFIC attempt — the live describe join asking whose progress note this is — can tell a tracked entry for the attempt it asked about from a lingering entry for a superseded one, instead of attributing one attempt’s note to another.
completion_token: CompletionTokenGeneration authorized to receive a result or synthesized loss.
Trait Implementations§
Source§impl Clone for InFlightActivity
impl Clone for InFlightActivity
Source§fn clone(&self) -> InFlightActivity
fn clone(&self) -> InFlightActivity
1.0.0 (const: unstable) · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
source. Read moreSource§impl Debug for InFlightActivity
impl Debug for InFlightActivity
impl Eq for InFlightActivity
Source§impl PartialEq for InFlightActivity
impl PartialEq for InFlightActivity
impl StructuralPartialEq for InFlightActivity
Auto Trait Implementations§
impl Freeze for InFlightActivity
impl RefUnwindSafe for InFlightActivity
impl Send for InFlightActivity
impl Sync for InFlightActivity
impl Unpin for InFlightActivity
impl UnsafeUnpin for InFlightActivity
impl UnwindSafe for InFlightActivity
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
impl<ST, DT> CastableFrom<ST, Initialized, Initialized> for DT
impl<ST, DT> CastableFrom<ST, Uninit, Uninit> for DT
Source§impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
Source§impl<Q, K> Equivalent<K> for Q
impl<Q, K> Equivalent<K> for Q
Source§impl<Q, K> Equivalent<K> for Q
impl<Q, K> Equivalent<K> for Q
Source§fn equivalent(&self, key: &K) -> bool
fn equivalent(&self, key: &K) -> bool
key and return true if they are equal.Source§impl<Q, K> Equivalent<K> for Q
impl<Q, K> Equivalent<K> for Q
Source§impl<T> Instrument for T
impl<T> Instrument for T
Source§fn instrument(self, span: Span) -> Instrumented<Self> ⓘ
fn instrument(self, span: Span) -> Instrumented<Self> ⓘ
Source§fn in_current_span(self) -> Instrumented<Self> ⓘ
fn in_current_span(self) -> Instrumented<Self> ⓘ
Source§impl<T> IntoRequest<T> for T
impl<T> IntoRequest<T> for T
Source§fn into_request(self) -> Request<T>
fn into_request(self) -> Request<T>
T in a tonic::Request