[][src]Enum raftlog::cluster::ClusterState

pub enum ClusterState {
    Stable,
    CatchUp,
    Joint,
}

クラスタの状態.

Variants

Stable

構成変更中ではなく安定している状態.

CatchUp

構成変更中で、新メンバ群のログを同期している状態.

この状態では、リーダ選出やログのコミットにおいて、投票権を有するのは旧メンバのみである.

Joint

構成変更中で、新旧メンバ群の両方に合意が必要な状態.

Methods

impl ClusterState[src]

pub fn is_stable(self) -> bool[src]

安定状態かどうかを判定する.

pub fn is_joint(self) -> bool[src]

新旧混合状態かどうかを判定する.

Trait Implementations

impl Clone for ClusterState[src]

impl Copy for ClusterState[src]

impl Debug for ClusterState[src]

impl Eq for ClusterState[src]

impl PartialEq<ClusterState> for ClusterState[src]

impl StructuralEq for ClusterState[src]

impl StructuralPartialEq for ClusterState[src]

Auto Trait Implementations

Blanket Implementations

impl<T> Any for T where
    T: 'static + ?Sized
[src]

impl<T> Borrow<T> for T where
    T: ?Sized
[src]

impl<T> BorrowMut<T> for T where
    T: ?Sized
[src]

impl<T> From<T> for T[src]

impl<T, U> Into<U> for T where
    U: From<T>, 
[src]

impl<T> ToOwned for T where
    T: Clone
[src]

type Owned = T

The resulting type after obtaining ownership.

impl<T, U> TryFrom<U> for T where
    U: Into<T>, 
[src]

type Error = Infallible

The type returned in the event of a conversion error.

impl<T, U> TryInto<U> for T where
    U: TryFrom<T>, 
[src]

type Error = <U as TryFrom<T>>::Error

The type returned in the event of a conversion error.