pub enum LeaseDecision {
Allowed,
NoLease,
Expired,
WrongOwner,
StaleEpoch,
}Expand description
Result of a fencing check.
Variants§
Allowed
The token is current and may write.
NoLease
No lease exists for the resource.
Expired
The lease exists but has expired.
WrongOwner
Another owner holds the lease.
StaleEpoch
The supplied fencing epoch is stale.
Trait Implementations§
Source§impl Clone for LeaseDecision
impl Clone for LeaseDecision
Source§fn clone(&self) -> LeaseDecision
fn clone(&self) -> LeaseDecision
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 LeaseDecision
Source§impl Debug for LeaseDecision
impl Debug for LeaseDecision
impl Eq for LeaseDecision
Source§impl PartialEq for LeaseDecision
impl PartialEq for LeaseDecision
impl StructuralPartialEq for LeaseDecision
Auto Trait Implementations§
impl Freeze for LeaseDecision
impl RefUnwindSafe for LeaseDecision
impl Send for LeaseDecision
impl Sync for LeaseDecision
impl Unpin for LeaseDecision
impl UnsafeUnpin for LeaseDecision
impl UnwindSafe for LeaseDecision
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