#[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, ) -> ResumeToken
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 moreSource§impl Debug for ResumeToken
impl Debug for ResumeToken
Source§impl PartialEq for ResumeToken
impl PartialEq for ResumeToken
impl Eq for ResumeToken
impl StructuralPartialEq for ResumeToken
Auto Trait Implementations§
impl Freeze for ResumeToken
impl RefUnwindSafe for ResumeToken
impl Send for ResumeToken
impl Sync for ResumeToken
impl Unpin for ResumeToken
impl UnsafeUnpin for ResumeToken
impl UnwindSafe for ResumeToken
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<Q, K> Equivalent<K> for Q
impl<Q, K> Equivalent<K> for Q
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> IntoEither for T
impl<T> IntoEither for T
Source§fn into_either(self, into_left: bool) -> Either<Self, Self>
fn into_either(self, into_left: bool) -> Either<Self, Self>
self into a Left variant of Either<Self, Self>
if into_left is true.
Converts self into a Right variant of Either<Self, Self>
otherwise. Read moreSource§fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
self into a Left variant of Either<Self, Self>
if into_left(&self) returns true.
Converts self into a Right variant of Either<Self, Self>
otherwise. Read more