#[non_exhaustive]pub struct ReclaimToken {
pub grant: ReclaimGrant,
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
claim_from_reclaim to mint a resumed Handle.
Wraps ReclaimGrant today (the scanner’s existing product).
Kept as a newtype so trait signatures name the reclaim-bound role
explicitly and so the wrapped shape can evolve without breaking the
trait.
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.grant: ReclaimGrant§worker_id: WorkerIdWorker identity that will claim the resumed execution.
Wave 2 additive extension — mirrors the ClaimPolicy
shape since claim_from_reclaim 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 ReclaimToken
impl ReclaimToken
pub fn new( grant: ReclaimGrant, worker_id: WorkerId, worker_instance_id: WorkerInstanceId, lease_ttl_ms: u32, ) -> ReclaimToken
Trait Implementations§
Source§impl Clone for ReclaimToken
impl Clone for ReclaimToken
Source§fn clone(&self) -> ReclaimToken
fn clone(&self) -> ReclaimToken
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 ReclaimToken
impl Debug for ReclaimToken
Source§impl PartialEq for ReclaimToken
impl PartialEq for ReclaimToken
impl Eq for ReclaimToken
impl StructuralPartialEq for ReclaimToken
Auto Trait Implementations§
impl Freeze for ReclaimToken
impl RefUnwindSafe for ReclaimToken
impl Send for ReclaimToken
impl Sync for ReclaimToken
impl Unpin for ReclaimToken
impl UnsafeUnpin for ReclaimToken
impl UnwindSafe for ReclaimToken
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
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>
Converts
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>
Converts
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