#[non_exhaustive]pub struct HandlePayload {
pub execution_id: ExecutionId,
pub attempt_index: AttemptIndex,
pub attempt_id: AttemptId,
pub lease_id: LeaseId,
pub lease_epoch: LeaseEpoch,
pub lease_ttl_ms: u64,
pub lane_id: LaneId,
pub worker_instance_id: WorkerInstanceId,
}Expand description
Decoded view of an encoded HandleOpaque — the minimum set of
fields every backend needs to construct its per-op KEYS + ARGV.
#[non_exhaustive]: fields grow additively when new attempt-cookie
state lands (e.g. a Wave-5 partition routing hint). Construct via
HandlePayload::new; field-access is via the pub fields.
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§attempt_index: AttemptIndex§attempt_id: AttemptId§lease_id: LeaseId§lease_epoch: LeaseEpoch§lease_ttl_ms: u64§lane_id: LaneId§worker_instance_id: WorkerInstanceIdImplementations§
Source§impl HandlePayload
impl HandlePayload
Sourcepub fn new(
execution_id: ExecutionId,
attempt_index: AttemptIndex,
attempt_id: AttemptId,
lease_id: LeaseId,
lease_epoch: LeaseEpoch,
lease_ttl_ms: u64,
lane_id: LaneId,
worker_instance_id: WorkerInstanceId,
) -> Self
pub fn new( execution_id: ExecutionId, attempt_index: AttemptIndex, attempt_id: AttemptId, lease_id: LeaseId, lease_epoch: LeaseEpoch, lease_ttl_ms: u64, lane_id: LaneId, worker_instance_id: WorkerInstanceId, ) -> Self
Construct a payload. All fields are mandatory at Wave 1c — the
#[non_exhaustive] guard lets future fields land additively.
Trait Implementations§
Source§impl Clone for HandlePayload
impl Clone for HandlePayload
Source§fn clone(&self) -> HandlePayload
fn clone(&self) -> HandlePayload
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 HandlePayload
impl Debug for HandlePayload
Source§impl PartialEq for HandlePayload
impl PartialEq for HandlePayload
impl Eq for HandlePayload
impl StructuralPartialEq for HandlePayload
Auto Trait Implementations§
impl Freeze for HandlePayload
impl RefUnwindSafe for HandlePayload
impl Send for HandlePayload
impl Sync for HandlePayload
impl Unpin for HandlePayload
impl UnsafeUnpin for HandlePayload
impl UnwindSafe for HandlePayload
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