pub enum TaskLeaseOutcome {
Acquired,
Contended,
}Expand description
Outcome of TaskLease::acquire.
Variants§
Acquired
We now hold the lease — it was free, its previous deadline had lapsed, or it was already ours (a renew).
Contended
A live foreign lease holds it. Back off and retry; on owner
death the deadline lapses and a later acquire takes over.
Trait Implementations§
Source§impl Clone for TaskLeaseOutcome
impl Clone for TaskLeaseOutcome
Source§fn clone(&self) -> TaskLeaseOutcome
fn clone(&self) -> TaskLeaseOutcome
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 moreimpl Copy for TaskLeaseOutcome
Source§impl Debug for TaskLeaseOutcome
impl Debug for TaskLeaseOutcome
impl Eq for TaskLeaseOutcome
Source§impl PartialEq for TaskLeaseOutcome
impl PartialEq for TaskLeaseOutcome
impl StructuralPartialEq for TaskLeaseOutcome
Auto Trait Implementations§
impl Freeze for TaskLeaseOutcome
impl RefUnwindSafe for TaskLeaseOutcome
impl Send for TaskLeaseOutcome
impl Sync for TaskLeaseOutcome
impl Unpin for TaskLeaseOutcome
impl UnsafeUnpin for TaskLeaseOutcome
impl UnwindSafe for TaskLeaseOutcome
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
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§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.