pub struct ActivityTask {
pub workflow_id: WorkflowId,
pub activity_id: ActivityId,
pub activity_type: String,
pub attempt: u32,
pub input: Payload,
}Expand description
SDK-level activity task envelope decoded from the AW-owned worker proto.
Fields§
§workflow_id: WorkflowIdOwning workflow id, required later when reporting this task’s outcome.
activity_id: ActivityIdActivity id correlating reports and heartbeats with this task.
activity_type: StringRegistered activity type name requested by the engine.
attempt: u32One-based delivery attempt stamped by the dispatching engine seam and read from the wire. Zero is malformed and rejected at decode.
input: PayloadOpaque activity input payload, preserving its content-type tag.
Trait Implementations§
Source§impl Clone for ActivityTask
impl Clone for ActivityTask
Source§fn clone(&self) -> ActivityTask
fn clone(&self) -> ActivityTask
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 ActivityTask
impl Debug for ActivityTask
impl Eq for ActivityTask
Source§impl PartialEq for ActivityTask
impl PartialEq for ActivityTask
Source§fn eq(&self, other: &ActivityTask) -> bool
fn eq(&self, other: &ActivityTask) -> bool
Tests for
self and other values to be equal, and is used by ==.impl StructuralPartialEq for ActivityTask
Source§impl TryFrom<ProtoActivityTask> for ActivityTask
impl TryFrom<ProtoActivityTask> for ActivityTask
Source§type Error = WorkerError
type Error = WorkerError
The type returned in the event of a conversion error.
Auto Trait Implementations§
impl Freeze for ActivityTask
impl RefUnwindSafe for ActivityTask
impl Send for ActivityTask
impl Sync for ActivityTask
impl Unpin for ActivityTask
impl UnsafeUnpin for ActivityTask
impl UnwindSafe for ActivityTask
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<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
Compare self to
key and return true if they are equal.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>
Wrap the input message
T in a tonic::Request