#[non_exhaustive]pub struct ClaimExecutionArgs {
pub execution_id: ExecutionId,
pub worker_id: WorkerId,
pub worker_instance_id: WorkerInstanceId,
pub lane_id: LaneId,
pub lease_id: LeaseId,
pub lease_ttl_ms: u64,
pub attempt_id: AttemptId,
pub expected_attempt_index: AttemptIndex,
pub attempt_policy_json: String,
pub attempt_timeout_ms: Option<u64>,
pub execution_deadline_at: Option<i64>,
pub now: TimestampMs,
}Fields (Non-exhaustive)§
This struct is marked as non-exhaustive
Non-exhaustive structs could have additional fields added in future. Therefore, non-exhaustive structs cannot be constructed in external crates using the traditional
Struct { .. } syntax; cannot be matched against without a wildcard ..; and struct update syntax will not work.execution_id: ExecutionId§worker_id: WorkerId§worker_instance_id: WorkerInstanceId§lane_id: LaneId§lease_id: LeaseId§lease_ttl_ms: u64§attempt_id: AttemptId§expected_attempt_index: AttemptIndexExpected attempt index (pre-read from exec_core.total_attempt_count). Used for KEYS construction — must match what the Lua computes.
attempt_policy_json: StringJSON-encoded attempt policy snapshot.
attempt_timeout_ms: Option<u64>Per-attempt timeout in ms.
execution_deadline_at: Option<i64>Total execution deadline (absolute timestamp ms).
now: TimestampMsImplementations§
Source§impl ClaimExecutionArgs
impl ClaimExecutionArgs
Sourcepub fn new(
execution_id: ExecutionId,
worker_id: WorkerId,
worker_instance_id: WorkerInstanceId,
lane_id: LaneId,
lease_id: LeaseId,
lease_ttl_ms: u64,
attempt_id: AttemptId,
expected_attempt_index: AttemptIndex,
attempt_policy_json: String,
attempt_timeout_ms: Option<u64>,
execution_deadline_at: Option<i64>,
now: TimestampMs,
) -> Self
pub fn new( execution_id: ExecutionId, worker_id: WorkerId, worker_instance_id: WorkerInstanceId, lane_id: LaneId, lease_id: LeaseId, lease_ttl_ms: u64, attempt_id: AttemptId, expected_attempt_index: AttemptIndex, attempt_policy_json: String, attempt_timeout_ms: Option<u64>, execution_deadline_at: Option<i64>, now: TimestampMs, ) -> Self
Construct a ClaimExecutionArgs. Added alongside
#[non_exhaustive] per feedback_non_exhaustive_needs_constructor
so consumers (SDK worker, backend impls) can still build the
args after the struct was sealed for forward-compat.
Trait Implementations§
Source§impl Clone for ClaimExecutionArgs
impl Clone for ClaimExecutionArgs
Source§fn clone(&self) -> ClaimExecutionArgs
fn clone(&self) -> ClaimExecutionArgs
Returns a duplicate of the value. Read more
1.0.0 · 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 ClaimExecutionArgs
impl Debug for ClaimExecutionArgs
Source§impl<'de> Deserialize<'de> for ClaimExecutionArgs
impl<'de> Deserialize<'de> for ClaimExecutionArgs
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 ClaimExecutionArgs
impl RefUnwindSafe for ClaimExecutionArgs
impl Send for ClaimExecutionArgs
impl Sync for ClaimExecutionArgs
impl Unpin for ClaimExecutionArgs
impl UnsafeUnpin for ClaimExecutionArgs
impl UnwindSafe for ClaimExecutionArgs
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