#[non_exhaustive]pub struct ResumeToken {
pub grant: ResumeGrant,
pub worker_id: WorkerId,
pub worker_instance_id: WorkerInstanceId,
pub lease_ttl_ms: u32,
}Expand description
Opaque cookie returned by the reclaim scanner; consumed by
crate::engine_backend::EngineBackend::claim_from_resume_grant
to mint a resumed Handle.
Wraps ResumeGrant today (the scanner’s existing product).
Kept as a newtype so trait signatures name the resume-bound role
explicitly and so the wrapped shape can evolve without breaking the
trait.
Naming history (RFC-024). This type was historically called
ReclaimToken. Its semantic is resume-after-suspend (it wraps a
ResumeGrant and feeds ff_claim_resumed_execution), so
RFC-024 Rev 2 renamed it to ResumeToken. The transitional
ReclaimToken alias lived for one PR and was dropped in PR-B+C;
downstream call sites migrate to ResumeToken.
Fields (Non-exhaustive)§
This struct is marked as non-exhaustive
Struct { .. } syntax; cannot be matched against without a wildcard ..; and struct update syntax will not work.grant: ResumeGrant§worker_id: WorkerIdWorker identity that will claim the resumed execution.
Wave 2 additive extension — mirrors the ClaimPolicy
shape since claim_from_resume_grant does not take a
ClaimPolicy.
worker_instance_id: WorkerInstanceIdWorker instance identity.
lease_ttl_ms: u32Lease TTL (ms) for the resumed attempt’s fresh lease.
Implementations§
Source§impl ResumeToken
impl ResumeToken
pub fn new( grant: ResumeGrant, worker_id: WorkerId, worker_instance_id: WorkerInstanceId, lease_ttl_ms: u32, ) -> Self
Trait Implementations§
Source§impl Clone for ResumeToken
impl Clone for ResumeToken
Source§fn clone(&self) -> ResumeToken
fn clone(&self) -> ResumeToken
1.0.0 · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
source. Read more