[−][src]Struct actix_raft::messages::MembershipConfig
A model of the membership configuration of the cluster.
Fields
is_in_joint_consensus: bool
A flag indicating if the system is currently in a joint consensus state.
members: Vec<NodeId>
Voting members of the Raft cluster.
non_voters: Vec<NodeId>
Non-voting members of the cluster.
These nodes are being brought up-to-speed by the leader and will be transitioned over to being standard members once they are up-to-date.
removing: Vec<NodeId>
The set of nodes which are to be removed after joint consensus is complete.
Methods
impl MembershipConfig
[src]
pub fn contains(&self, x: &NodeId) -> bool
[src]
Check if the given NodeId exists in this membership config.
This checks only the contents of members
& non_voters
.
pub fn all_nodes(&self) -> impl Iterator<Item = &NodeId>
[src]
Get an iterator over all nodes in the current config.
pub fn len(&self) -> usize
[src]
Get the length of the members & non_voters vectors.
Trait Implementations
impl Clone for MembershipConfig
[src]
fn clone(&self) -> MembershipConfig
[src]
fn clone_from(&mut self, source: &Self)
1.0.0[src]
impl Debug for MembershipConfig
[src]
impl<'de> Deserialize<'de> for MembershipConfig
[src]
fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error> where
__D: Deserializer<'de>,
[src]
__D: Deserializer<'de>,
impl Eq for MembershipConfig
[src]
impl PartialEq<MembershipConfig> for MembershipConfig
[src]
fn eq(&self, other: &MembershipConfig) -> bool
[src]
fn ne(&self, other: &MembershipConfig) -> bool
[src]
impl Serialize for MembershipConfig
[src]
fn serialize<__S>(&self, __serializer: __S) -> Result<__S::Ok, __S::Error> where
__S: Serializer,
[src]
__S: Serializer,
impl StructuralEq for MembershipConfig
[src]
impl StructuralPartialEq for MembershipConfig
[src]
Auto Trait Implementations
impl RefUnwindSafe for MembershipConfig
impl Send for MembershipConfig
impl Sync for MembershipConfig
impl Unpin for MembershipConfig
impl UnwindSafe for MembershipConfig
Blanket Implementations
impl<T> Any for T where
T: 'static + ?Sized,
[src]
T: 'static + ?Sized,
impl<T> Borrow<T> for T where
T: ?Sized,
[src]
T: ?Sized,
impl<T> BorrowMut<T> for T where
T: ?Sized,
[src]
T: ?Sized,
fn borrow_mut(&mut self) -> &mut T
[src]
impl<T> DeserializeOwned for T where
T: for<'de> Deserialize<'de>,
[src]
T: for<'de> Deserialize<'de>,
impl<Q, K> Equivalent<K> for Q where
K: Borrow<Q> + ?Sized,
Q: Eq + ?Sized,
[src]
K: Borrow<Q> + ?Sized,
Q: Eq + ?Sized,
fn equivalent(&self, key: &K) -> bool
[src]
impl<T> From<T> for T
[src]
impl<T, U> Into<U> for T where
U: From<T>,
[src]
U: From<T>,
impl<T> ToOwned for T where
T: Clone,
[src]
T: Clone,
type Owned = T
The resulting type after obtaining ownership.
fn to_owned(&self) -> T
[src]
fn clone_into(&self, target: &mut T)
[src]
impl<T, U> TryFrom<U> for T where
U: Into<T>,
[src]
U: Into<T>,
type Error = Infallible
The type returned in the event of a conversion error.
fn try_from(value: U) -> Result<T, <T as TryFrom<U>>::Error>
[src]
impl<T, U> TryInto<U> for T where
U: TryFrom<T>,
[src]
U: TryFrom<T>,
type Error = <U as TryFrom<T>>::Error
The type returned in the event of a conversion error.
fn try_into(self) -> Result<U, <U as TryFrom<T>>::Error>
[src]
impl<V, T> VZip<V> for T where
V: MultiLane<T>,
V: MultiLane<T>,