pub struct LeaseRef {
pub job_id: String,
pub lease_id: String,
pub fence: u64,
}Expand description
Identifies one claimed job for ack/renew. admit writes ONE lease_id for every
job claimed in the same call, and fence counts per job — so (lease_id, fence) alone
is ambiguous: two jobs on their first claim in one call are both fence=1. The job id
selects the row; lease_id + fence still gate the write (lease fencing) so a superseded holder
is rejected, never silently no-opped.
Fields§
§job_id: String§lease_id: String§fence: u64Trait Implementations§
impl Eq for LeaseRef
impl StructuralPartialEq for LeaseRef
Auto Trait Implementations§
impl Freeze for LeaseRef
impl RefUnwindSafe for LeaseRef
impl Send for LeaseRef
impl Sync for LeaseRef
impl Unpin for LeaseRef
impl UnsafeUnpin for LeaseRef
impl UnwindSafe for LeaseRef
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