#[non_exhaustive]pub enum ClusterBumpEpochResult {
Bumped(u64),
Still(u64),
}Expand description
Result for the cluster_bumpepoch command
Variants (Non-exhaustive)§
This enum is marked as non-exhaustive
Non-exhaustive enums could have additional variants added in future. Therefore, when matching against variants of non-exhaustive enums, an extra wildcard arm must be added to account for any future variants.
Bumped(u64)
The epoch was incremented, and the node now carries this one.
Still(u64)
The node already had the greatest config epoch in the cluster, this one.
Implementations§
Trait Implementations§
Source§impl Debug for ClusterBumpEpochResult
impl Debug for ClusterBumpEpochResult
Source§impl<'de> Deserialize<'de> for ClusterBumpEpochResult
impl<'de> Deserialize<'de> for ClusterBumpEpochResult
Source§fn deserialize<D>(deserializer: D) -> Result<Self, D::Error>where
D: Deserializer<'de>,
fn deserialize<D>(deserializer: D) -> Result<Self, D::Error>where
D: Deserializer<'de>,
CLUSTER BUMPEPOCH answers a single line holding both the outcome and
the resulting config epoch, as in BUMPED 12, so the two are read from
that text rather than from an enum tag alone.
impl Eq for ClusterBumpEpochResult
Source§impl PartialEq for ClusterBumpEpochResult
impl PartialEq for ClusterBumpEpochResult
impl StructuralPartialEq for ClusterBumpEpochResult
Auto Trait Implementations§
impl Freeze for ClusterBumpEpochResult
impl RefUnwindSafe for ClusterBumpEpochResult
impl Send for ClusterBumpEpochResult
impl Sync for ClusterBumpEpochResult
impl Unpin for ClusterBumpEpochResult
impl UnsafeUnpin for ClusterBumpEpochResult
impl UnwindSafe for ClusterBumpEpochResult
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
impl<T> DeserializeOwned for Twhere
T: for<'de> Deserialize<'de>,
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.