pub struct TaskLease { /* private fields */ }Expand description
Exact logical lease fence for one worker generation and task attempt.
Implementations§
Source§impl TaskLease
impl TaskLease
pub fn task_id(&self) -> &str
pub fn worker_id(&self) -> &str
pub fn worker_generation(&self) -> u64
pub fn task_generation(&self) -> u64
pub fn attempt(&self) -> u32
pub fn lease_id(&self) -> u64
pub fn acquired_at(&self) -> u64
pub fn expires_at(&self) -> u64
Trait Implementations§
impl Eq for TaskLease
impl StructuralPartialEq for TaskLease
Auto Trait Implementations§
impl Freeze for TaskLease
impl RefUnwindSafe for TaskLease
impl Send for TaskLease
impl Sync for TaskLease
impl Unpin for TaskLease
impl UnsafeUnpin for TaskLease
impl UnwindSafe for TaskLease
Blanket Implementations§
§impl<'a, T, E> AsTaggedExplicit<'a, E> for Twhere
T: 'a,
impl<'a, T, E> AsTaggedExplicit<'a, E> for Twhere
T: 'a,
§impl<'a, T, E> AsTaggedImplicit<'a, E> for Twhere
T: 'a,
impl<'a, T, E> AsTaggedImplicit<'a, E> for Twhere
T: 'a,
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,
§impl<Q, K> Equivalent<K> for Q
impl<Q, K> Equivalent<K> for Q
§fn equivalent(&self, key: &K) -> bool
fn equivalent(&self, key: &K) -> bool
Checks if this value is equivalent to the given key. Read more
§impl<Q, K> Equivalent<K> for Q
impl<Q, K> Equivalent<K> for Q
§fn equivalent(&self, key: &K) -> bool
fn equivalent(&self, key: &K) -> bool
Compare self to
key and return true if they are equal.§impl<Q, K> Equivalent<K> for Q
impl<Q, K> Equivalent<K> for Q
§fn equivalent(&self, key: &K) -> bool
fn equivalent(&self, key: &K) -> bool
Checks if this value is equivalent to the given key. Read more