pub struct PendingActivityInfo {Show 24 fields
pub activity_id: String,
pub activity_type: Option<ActivityType>,
pub state: i32,
pub heartbeat_details: Option<Payloads>,
pub last_heartbeat_time: Option<Timestamp>,
pub last_started_time: Option<Timestamp>,
pub attempt: i32,
pub maximum_attempts: i32,
pub scheduled_time: Option<Timestamp>,
pub expiration_time: Option<Timestamp>,
pub last_failure: Option<Failure>,
pub last_worker_identity: String,
pub last_worker_version_stamp: Option<WorkerVersionStamp>,
pub current_retry_interval: Option<Duration>,
pub last_attempt_complete_time: Option<Timestamp>,
pub next_attempt_schedule_time: Option<Timestamp>,
pub paused: bool,
pub last_deployment: Option<Deployment>,
pub last_worker_deployment_version: String,
pub last_deployment_version: Option<WorkerDeploymentVersion>,
pub priority: Option<Priority>,
pub pause_info: Option<PauseInfo>,
pub activity_options: Option<ActivityOptions>,
pub assigned_build_id: Option<AssignedBuildId>,
}Fields§
§activity_id: String§activity_type: Option<ActivityType>§state: i32§heartbeat_details: Option<Payloads>§last_heartbeat_time: Option<Timestamp>§last_started_time: Option<Timestamp>§attempt: i32§maximum_attempts: i32§scheduled_time: Option<Timestamp>§expiration_time: Option<Timestamp>§last_failure: Option<Failure>§last_worker_identity: String§last_worker_version_stamp: Option<WorkerVersionStamp>Deprecated. The version stamp of the worker to whom this activity was most recently dispatched This field should be cleaned up when versioning-2 API is removed. [cleanup-experimental-wv]
current_retry_interval: Option<Duration>The time activity will wait until the next retry. If activity is currently running it will be next retry interval if activity failed. If activity is currently waiting it will be current retry interval. If there will be no retry it will be null.
last_attempt_complete_time: Option<Timestamp>The time when the last activity attempt was completed. If activity has not been completed yet then it will be null.
next_attempt_schedule_time: Option<Timestamp>Next time when activity will be scheduled. If activity is currently scheduled or started it will be null.
paused: boolIndicates if activity is paused.
last_deployment: Option<Deployment>The deployment this activity was dispatched to most recently. Present only if the activity
was dispatched to a versioned worker.
Deprecated. Use last_deployment_version.
last_worker_deployment_version: StringThe Worker Deployment Version this activity was dispatched to most recently.
Deprecated. Use last_deployment_version.
last_deployment_version: Option<WorkerDeploymentVersion>The Worker Deployment Version this activity was dispatched to most recently. If nil, the activity has not yet been dispatched or was last dispatched to an unversioned worker.
priority: Option<Priority>Priority metadata. If this message is not present, or any fields are not present, they inherit the values from the workflow.
pause_info: Option<PauseInfo>§activity_options: Option<ActivityOptions>Current activity options. May be different from the one used to start the activity.
assigned_build_id: Option<AssignedBuildId>Absence of assigned_build_id generally means this task is on an “unversioned” task queue.
In rare cases, it can also mean that the task queue is versioned but we failed to write activity’s
independently-assigned build ID to the database. This case heals automatically once the task is dispatched.
Deprecated. This field should be cleaned up when versioning-2 API is removed. [cleanup-experimental-wv]
Implementations§
Source§impl PendingActivityInfo
impl PendingActivityInfo
Sourcepub fn state(&self) -> PendingActivityState
pub fn state(&self) -> PendingActivityState
Returns the enum value of state, or the default if the field is set to an invalid enum value.
Sourcepub fn set_state(&mut self, value: PendingActivityState)
pub fn set_state(&mut self, value: PendingActivityState)
Sets state to the provided enum value.
Trait Implementations§
Source§impl Clone for PendingActivityInfo
impl Clone for PendingActivityInfo
Source§fn clone(&self) -> PendingActivityInfo
fn clone(&self) -> PendingActivityInfo
1.0.0 · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
source. Read moreSource§impl Debug for PendingActivityInfo
impl Debug for PendingActivityInfo
Source§impl Default for PendingActivityInfo
impl Default for PendingActivityInfo
Source§impl Message for PendingActivityInfo
impl Message for PendingActivityInfo
Source§fn encoded_len(&self) -> usize
fn encoded_len(&self) -> usize
Source§fn encode(&self, buf: &mut impl BufMut) -> Result<(), EncodeError>where
Self: Sized,
fn encode(&self, buf: &mut impl BufMut) -> Result<(), EncodeError>where
Self: Sized,
Source§fn encode_to_vec(&self) -> Vec<u8> ⓘwhere
Self: Sized,
fn encode_to_vec(&self) -> Vec<u8> ⓘwhere
Self: Sized,
Source§fn encode_length_delimited(
&self,
buf: &mut impl BufMut,
) -> Result<(), EncodeError>where
Self: Sized,
fn encode_length_delimited(
&self,
buf: &mut impl BufMut,
) -> Result<(), EncodeError>where
Self: Sized,
Source§fn encode_length_delimited_to_vec(&self) -> Vec<u8> ⓘwhere
Self: Sized,
fn encode_length_delimited_to_vec(&self) -> Vec<u8> ⓘwhere
Self: Sized,
Source§fn decode(buf: impl Buf) -> Result<Self, DecodeError>where
Self: Default,
fn decode(buf: impl Buf) -> Result<Self, DecodeError>where
Self: Default,
Source§fn decode_length_delimited(buf: impl Buf) -> Result<Self, DecodeError>where
Self: Default,
fn decode_length_delimited(buf: impl Buf) -> Result<Self, DecodeError>where
Self: Default,
Source§fn merge(&mut self, buf: impl Buf) -> Result<(), DecodeError>where
Self: Sized,
fn merge(&mut self, buf: impl Buf) -> Result<(), DecodeError>where
Self: Sized,
self. Read moreSource§fn merge_length_delimited(&mut self, buf: impl Buf) -> Result<(), DecodeError>where
Self: Sized,
fn merge_length_delimited(&mut self, buf: impl Buf) -> Result<(), DecodeError>where
Self: Sized,
self.Source§impl Name for PendingActivityInfo
impl Name for PendingActivityInfo
Source§const NAME: &'static str = "PendingActivityInfo"
const NAME: &'static str = "PendingActivityInfo"
Message.
This name is the same as it appears in the source .proto file, e.g. FooBar.Source§const PACKAGE: &'static str = "temporal.api.workflow.v1"
const PACKAGE: &'static str = "temporal.api.workflow.v1"
., e.g. google.protobuf.Source§fn full_name() -> String
fn full_name() -> String
Message.
It’s prefixed with the package name and names of any parent messages,
e.g. google.rpc.BadRequest.FieldViolation.
By default, this is the package name followed by the message name.
Fully-qualified names must be unique within a domain of Type URLs.Source§impl PartialEq for PendingActivityInfo
impl PartialEq for PendingActivityInfo
§impl PayloadVisitable for PendingActivityInfo
impl PayloadVisitable for PendingActivityInfo
§fn visit_payloads_mut<'a>(
&'a mut self,
visitor: &'a mut (dyn AsyncPayloadVisitor + Send),
) -> BoxFuture<'a, ()>
fn visit_payloads_mut<'a>( &'a mut self, visitor: &'a mut (dyn AsyncPayloadVisitor + Send), ) -> BoxFuture<'a, ()>
impl StructuralPartialEq for PendingActivityInfo
Auto Trait Implementations§
impl Freeze for PendingActivityInfo
impl RefUnwindSafe for PendingActivityInfo
impl Send for PendingActivityInfo
impl Sync for PendingActivityInfo
impl Unpin for PendingActivityInfo
impl UnsafeUnpin for PendingActivityInfo
impl UnwindSafe for PendingActivityInfo
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
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: 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