Enum kube_coordinate::LeaderState
source · pub enum LeaderState {
Leading,
Following,
Standby,
}
Expand description
Different states which a leader elector may be in.
Variants§
Leading
This client instance is the leader.
Following
A state indicating that a different client is currently the leader.
Standby
A state indicating that the lease state is unknown, does not exist, or that the corresponding leader elector task is starting or stopping.
Implementations§
Trait Implementations§
source§impl Clone for LeaderState
impl Clone for LeaderState
source§fn clone(&self) -> LeaderState
fn clone(&self) -> LeaderState
Returns a copy of the value. Read more
1.0.0 · 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 LeaderState
impl Debug for LeaderState
source§impl PartialEq for LeaderState
impl PartialEq for LeaderState
source§fn eq(&self, other: &LeaderState) -> bool
fn eq(&self, other: &LeaderState) -> bool
This method tests for
self
and other
values to be equal, and is used
by ==
.impl Eq for LeaderState
impl StructuralPartialEq for LeaderState
Auto Trait Implementations§
impl RefUnwindSafe for LeaderState
impl Send for LeaderState
impl Sync for LeaderState
impl Unpin for LeaderState
impl UnwindSafe for LeaderState
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<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.