Struct openraft::types::v070::effective_membership::EffectiveMembership
source · pub struct EffectiveMembership {
pub log_id: LogId,
pub membership: Membership,
}
Expand description
The currently active membership config.
It includes:
- the id of the log that sets this membership config,
- and the config.
An active config is just the last seen config in raft spec.
Fields§
§log_id: LogId
The id of the log that applies this membership config
membership: Membership
Implementations§
source§impl EffectiveMembership
impl EffectiveMembership
pub fn new_initial(node_id: u64) -> Self
source§impl EffectiveMembership
impl EffectiveMembership
pub fn new(log_id: LogId, membership: Membership) -> Self
Trait Implementations§
source§impl Clone for EffectiveMembership
impl Clone for EffectiveMembership
source§fn clone(&self) -> EffectiveMembership
fn clone(&self) -> EffectiveMembership
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 EffectiveMembership
impl Debug for EffectiveMembership
source§impl Default for EffectiveMembership
impl Default for EffectiveMembership
source§fn default() -> EffectiveMembership
fn default() -> EffectiveMembership
Returns the “default value” for a type. Read more
source§impl<'de> Deserialize<'de> for EffectiveMembership
impl<'de> Deserialize<'de> for EffectiveMembership
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>,
Deserialize this value from the given Serde deserializer. Read more
source§impl MessageSummary for EffectiveMembership
impl MessageSummary for EffectiveMembership
source§impl PartialEq<EffectiveMembership> for EffectiveMembership
impl PartialEq<EffectiveMembership> for EffectiveMembership
source§fn eq(&self, other: &EffectiveMembership) -> bool
fn eq(&self, other: &EffectiveMembership) -> bool
This method tests for
self
and other
values to be equal, and is used
by ==
.source§impl Serialize for EffectiveMembership
impl Serialize for EffectiveMembership
impl Eq for EffectiveMembership
impl StructuralEq for EffectiveMembership
impl StructuralPartialEq for EffectiveMembership
Auto Trait Implementations§
impl RefUnwindSafe for EffectiveMembership
impl Send for EffectiveMembership
impl Sync for EffectiveMembership
impl Unpin for EffectiveMembership
impl UnwindSafe for EffectiveMembership
Blanket Implementations§
source§impl<Q, K> Equivalent<K> for Qwhere
Q: Eq + ?Sized,
K: Borrow<Q> + ?Sized,
impl<Q, K> Equivalent<K> for Qwhere Q: Eq + ?Sized, K: Borrow<Q> + ?Sized,
source§fn equivalent(&self, key: &K) -> bool
fn equivalent(&self, key: &K) -> bool
Compare self to
key
and return true
if they are equal.