pub enum LeadershipDecision {
Allowed,
NoLease,
Expired,
StaleEpoch,
WrongHolder,
}Expand description
Result of a leadership fencing check.
Variants§
Allowed
The write is permitted.
NoLease
No applicable lease exists.
Expired
The applicable lease has expired.
StaleEpoch
The caller supplied an epoch newer than the known lease.
WrongHolder
Another core holds the applicable lease.
Trait Implementations§
Source§impl Clone for LeadershipDecision
impl Clone for LeadershipDecision
Source§fn clone(&self) -> LeadershipDecision
fn clone(&self) -> LeadershipDecision
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 LeadershipDecision
Source§impl Debug for LeadershipDecision
impl Debug for LeadershipDecision
impl Eq for LeadershipDecision
Source§impl PartialEq for LeadershipDecision
impl PartialEq for LeadershipDecision
impl StructuralPartialEq for LeadershipDecision
Auto Trait Implementations§
impl Freeze for LeadershipDecision
impl RefUnwindSafe for LeadershipDecision
impl Send for LeadershipDecision
impl Sync for LeadershipDecision
impl Unpin for LeadershipDecision
impl UnsafeUnpin for LeadershipDecision
impl UnwindSafe for LeadershipDecision
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