#[non_exhaustive]pub struct ClaimPolicy {
pub max_wait: Option<Duration>,
pub worker_id: WorkerId,
pub worker_instance_id: WorkerInstanceId,
pub lease_ttl_ms: u32,
}Expand description
Policy hints for claim. Carries the worker identity the backend
needs to invoke ff_claim_execution (v0.7 Wave 2) plus the
blocking-wait bound.
Wave 2 extension: worker_id + worker_instance_id +
lease_ttl_ms are now required so the Valkey backend’s claim
impl can issue the claim FCALL without a side-channel identity
lookup. The constructor change is a pre-1.0 breaking change,
tracked in the CHANGELOG.
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.max_wait: Option<Duration>Maximum blocking wait. None means backend-default (today:
non-blocking / immediate return).
worker_id: WorkerIdWorker identity (stable across process restarts).
worker_instance_id: WorkerInstanceIdWorker instance identity (unique per process).
lease_ttl_ms: u32Lease TTL in milliseconds for the claim about to be minted.
Implementations§
Source§impl ClaimPolicy
impl ClaimPolicy
Trait Implementations§
Source§impl Clone for ClaimPolicy
impl Clone for ClaimPolicy
Source§fn clone(&self) -> ClaimPolicy
fn clone(&self) -> ClaimPolicy
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 ClaimPolicy
impl Debug for ClaimPolicy
Source§impl PartialEq for ClaimPolicy
impl PartialEq for ClaimPolicy
impl Eq for ClaimPolicy
impl StructuralPartialEq for ClaimPolicy
Auto Trait Implementations§
impl Freeze for ClaimPolicy
impl RefUnwindSafe for ClaimPolicy
impl Send for ClaimPolicy
impl Sync for ClaimPolicy
impl Unpin for ClaimPolicy
impl UnsafeUnpin for ClaimPolicy
impl UnwindSafe for ClaimPolicy
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