Enum openraft::entry::payload::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 for EntryPayload<C>
impl<C> Clone for EntryPayload<C>
source§impl<C: RaftTypeConfig> Debug for EntryPayload<C>
impl<C: RaftTypeConfig> Debug for EntryPayload<C>
source§impl<'de, C: RaftTypeConfig> Deserialize<'de> for EntryPayload<C>where
C::D: Deserialize<'de>,
impl<'de, C: RaftTypeConfig> Deserialize<'de> for EntryPayload<C>where
C::D: Deserialize<'de>,
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<C: RaftTypeConfig> MessageSummary<EntryPayload<C>> for EntryPayload<C>
impl<C: RaftTypeConfig> MessageSummary<EntryPayload<C>> for EntryPayload<C>
source§impl<C: PartialEq + RaftTypeConfig> PartialEq for EntryPayload<C>
impl<C: PartialEq + RaftTypeConfig> PartialEq for EntryPayload<C>
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 ==
.source§impl<C: RaftTypeConfig> RaftPayload<<C as RaftTypeConfig>::NodeId, <C as RaftTypeConfig>::Node> for EntryPayload<C>
impl<C: RaftTypeConfig> RaftPayload<<C as RaftTypeConfig>::NodeId, <C as RaftTypeConfig>::Node> for EntryPayload<C>
source§impl<C: RaftTypeConfig> Serialize for EntryPayload<C>
impl<C: RaftTypeConfig> Serialize for EntryPayload<C>
impl<C: RaftTypeConfig> StructuralPartialEq for EntryPayload<C>
Auto Trait Implementations§
impl<C> Freeze for EntryPayload<C>
impl<C> RefUnwindSafe for EntryPayload<C>where
<C as RaftTypeConfig>::D: RefUnwindSafe,
<C as RaftTypeConfig>::NodeId: RefUnwindSafe,
<C as RaftTypeConfig>::Node: RefUnwindSafe,
impl<C> Send for EntryPayload<C>
impl<C> Sync for EntryPayload<C>
impl<C> Unpin for EntryPayload<C>
impl<C> UnwindSafe for EntryPayload<C>where
<C as RaftTypeConfig>::D: UnwindSafe,
<C as RaftTypeConfig>::NodeId: RefUnwindSafe,
<C as RaftTypeConfig>::Node: RefUnwindSafe,
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