pub struct Lease {
pub run_id: RunId,
pub token: u64,
pub attempts: u32,
}Expand description
A claimed job: the run to step, the lease token that proves the claim and how many times the job was claimed since it last completed or was rescheduled. A token from an expired, re-claimed lease is stale.
Fields§
§run_id: RunId§token: u64§attempts: u32Trait Implementations§
impl Eq for Lease
impl StructuralPartialEq for Lease
Auto Trait Implementations§
impl Forget for Lease
impl Freeze for Lease
impl Move for Lease
impl RefUnwindSafe for Lease
impl Send for Lease
impl Sync for Lease
impl Unpin for Lease
impl UnsafeUnpin for Lease
impl UnwindSafe for Lease
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
impl<ST, DT> CastableFrom<ST, Initialized, Initialized> for DT
impl<ST, DT> CastableFrom<ST, Uninit, Uninit> for DT
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§fn equivalent(&self, key: &K) -> bool
fn equivalent(&self, key: &K) -> bool
Compare self to
key and return true if they are equal.