pub struct QueuedWorkClaimLease {
pub claim_id: String,
pub lease_token: String,
pub fencing_token: u64,
pub claimed_at_epoch_ms: u64,
pub expires_at_epoch_ms: u64,
}Expand description
A freshly derived lease for a selected claim prefix.
The fencing token advances past the head batch’s last observed token, the claim id is stable for (head batch, fencing token), and the lease token is an opaque proof-of-ownership digest the backend stamps on every claimed row.
Fields§
§claim_id: String§lease_token: String§fencing_token: u64§claimed_at_epoch_ms: u64§expires_at_epoch_ms: u64Implementations§
Source§impl QueuedWorkClaimLease
impl QueuedWorkClaimLease
pub fn derive( head: &ClaimCandidate, session_id: &str, owner_id: &str, now_epoch_ms: u64, lease_ttl_ms: u64, ) -> QueuedWorkClaimLease
Trait Implementations§
Source§impl Clone for QueuedWorkClaimLease
impl Clone for QueuedWorkClaimLease
Source§fn clone(&self) -> QueuedWorkClaimLease
fn clone(&self) -> QueuedWorkClaimLease
Returns a duplicate of the value. Read more
1.0.0 (const: unstable) · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source. Read moreAuto Trait Implementations§
impl Freeze for QueuedWorkClaimLease
impl RefUnwindSafe for QueuedWorkClaimLease
impl Send for QueuedWorkClaimLease
impl Sync for QueuedWorkClaimLease
impl Unpin for QueuedWorkClaimLease
impl UnsafeUnpin for QueuedWorkClaimLease
impl UnwindSafe for QueuedWorkClaimLease
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