Enum openraft::EntryPayload
source · pub enum EntryPayload<C: RaftTypeConfig> {
Blank,
Normal(C::D),
Membership(Membership<C::NodeId, C::Node>),
}
Expand description
Log entry payload variants.
Variants§
Blank
An empty payload committed by a new cluster leader.
Normal(C::D)
Membership(Membership<C::NodeId, C::Node>)
A change-membership log entry.
Trait Implementations§
source§impl<C: Clone + RaftTypeConfig> Clone for EntryPayload<C>where
C::D: Clone,
C::NodeId: Clone,
C::Node: Clone,
impl<C: Clone + RaftTypeConfig> Clone for EntryPayload<C>where C::D: Clone, C::NodeId: Clone, C::Node: Clone,
source§fn clone(&self) -> EntryPayload<C>
fn clone(&self) -> EntryPayload<C>
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<C: Debug + RaftTypeConfig> Debug for EntryPayload<C>where
C::D: Debug,
C::NodeId: Debug,
C::Node: Debug,
impl<C: Debug + RaftTypeConfig> Debug for EntryPayload<C>where C::D: Debug, C::NodeId: Debug, C::Node: Debug,
source§impl<C: RaftTypeConfig> MessageSummary<EntryPayload<C>> for EntryPayload<C>
impl<C: RaftTypeConfig> MessageSummary<EntryPayload<C>> for EntryPayload<C>
source§impl<C: PartialEq + RaftTypeConfig> PartialEq<EntryPayload<C>> for EntryPayload<C>where
C::D: PartialEq,
C::NodeId: PartialEq,
C::Node: PartialEq,
impl<C: PartialEq + RaftTypeConfig> PartialEq<EntryPayload<C>> for EntryPayload<C>where C::D: PartialEq, C::NodeId: PartialEq, C::Node: PartialEq,
source§fn eq(&self, other: &EntryPayload<C>) -> bool
fn eq(&self, other: &EntryPayload<C>) -> bool
This method tests for
self
and other
values to be equal, and is used
by ==
.