pub enum RuntimeLeaseAcquire {
Acquired,
Standby {
owner: Option<RuntimeLeaseOwner>,
},
}Expand description
Result of one acquisition attempt.
Variants§
Acquired
The caller owns the lease and may start the singleton worker group.
Standby
Another owner still holds the lease.
Fields
§
owner: Option<RuntimeLeaseOwner>Current owner details when available.
Implementations§
Trait Implementations§
Source§impl Clone for RuntimeLeaseAcquire
impl Clone for RuntimeLeaseAcquire
Source§fn clone(&self) -> RuntimeLeaseAcquire
fn clone(&self) -> RuntimeLeaseAcquire
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 moreSource§impl Debug for RuntimeLeaseAcquire
impl Debug for RuntimeLeaseAcquire
Source§impl PartialEq for RuntimeLeaseAcquire
impl PartialEq for RuntimeLeaseAcquire
Source§fn eq(&self, other: &RuntimeLeaseAcquire) -> bool
fn eq(&self, other: &RuntimeLeaseAcquire) -> bool
Tests for
self and other values to be equal, and is used by ==.impl Eq for RuntimeLeaseAcquire
impl StructuralPartialEq for RuntimeLeaseAcquire
Auto Trait Implementations§
impl Freeze for RuntimeLeaseAcquire
impl RefUnwindSafe for RuntimeLeaseAcquire
impl Send for RuntimeLeaseAcquire
impl Sync for RuntimeLeaseAcquire
impl Unpin for RuntimeLeaseAcquire
impl UnsafeUnpin for RuntimeLeaseAcquire
impl UnwindSafe for RuntimeLeaseAcquire
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,
§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.