pub struct TaskTokenState {
pub activity_arn: String,
pub status: String,
pub output: Option<String>,
pub error: Option<String>,
pub cause: Option<String>,
pub input: Option<String>,
pub created_at: DateTime<Utc>,
pub last_heartbeat_at: Option<DateTime<Utc>>,
pub heartbeat_seconds: Option<i64>,
pub timeout_seconds: Option<i64>,
}Fields§
§activity_arn: String§status: StringPENDING (waiting for GetActivityTask to dequeue) /
IN_PROGRESS (worker has picked it up) /
SUCCEEDED / FAILED / TIMED_OUT.
output: Option<String>§error: Option<String>§cause: Option<String>§input: Option<String>Input the state machine wanted the worker to process. None
for tokens minted by external GetActivityTask callers without
any associated activity execution (legacy synthetic path).
created_at: DateTime<Utc>§last_heartbeat_at: Option<DateTime<Utc>>§heartbeat_seconds: Option<i64>Per AWS docs: state machine fails the task if no heartbeat in this many seconds while the worker is running.
timeout_seconds: Option<i64>Overall timeout for the task; counted from created_at.
Trait Implementations§
Source§impl Clone for TaskTokenState
impl Clone for TaskTokenState
Source§fn clone(&self) -> TaskTokenState
fn clone(&self) -> TaskTokenState
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 TaskTokenState
impl Debug for TaskTokenState
Source§impl<'de> Deserialize<'de> for TaskTokenState
impl<'de> Deserialize<'de> for TaskTokenState
Source§fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
__D: Deserializer<'de>,
fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
__D: Deserializer<'de>,
Deserialize this value from the given Serde deserializer. Read more
Auto Trait Implementations§
impl Freeze for TaskTokenState
impl RefUnwindSafe for TaskTokenState
impl Send for TaskTokenState
impl Sync for TaskTokenState
impl Unpin for TaskTokenState
impl UnsafeUnpin for TaskTokenState
impl UnwindSafe for TaskTokenState
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