pub enum EntryPayload<C>where
C: RaftTypeConfig,{
Blank,
Normal(<C as RaftTypeConfig>::D),
Membership(Membership<<C as RaftTypeConfig>::NodeId, <C as RaftTypeConfig>::Node>),
}Expand description
Log entry payload variants.
Variants§
Blank
An empty payload committed by a new cluster leader.
Normal(<C as RaftTypeConfig>::D)
Membership(Membership<<C as RaftTypeConfig>::NodeId, <C as RaftTypeConfig>::Node>)
A change-membership log entry.
Trait Implementations§
Source§impl<C> Clone for EntryPayload<C>
impl<C> Clone for EntryPayload<C>
Source§fn clone(&self) -> EntryPayload<C>
fn clone(&self) -> EntryPayload<C>
Returns a duplicate of the value. Read more
1.0.0 (const: unstable) · 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 for EntryPayload<C>where
C: RaftTypeConfig,
impl<C> Debug for EntryPayload<C>where
C: RaftTypeConfig,
Source§impl<'de, C> Deserialize<'de> for EntryPayload<C>
impl<'de, C> Deserialize<'de> for EntryPayload<C>
Source§fn deserialize<__D>(
__deserializer: __D,
) -> Result<EntryPayload<C>, <__D as Deserializer<'de>>::Error>where
__D: Deserializer<'de>,
fn deserialize<__D>(
__deserializer: __D,
) -> Result<EntryPayload<C>, <__D as Deserializer<'de>>::Error>where
__D: Deserializer<'de>,
Deserialize this value from the given Serde deserializer. Read more
Source§impl<C> MessageSummary<EntryPayload<C>> for EntryPayload<C>where
C: RaftTypeConfig,
impl<C> MessageSummary<EntryPayload<C>> for EntryPayload<C>where
C: RaftTypeConfig,
Source§impl<C> PartialEq for EntryPayload<C>where
C: PartialEq + RaftTypeConfig,
<C as RaftTypeConfig>::D: PartialEq,
<C as RaftTypeConfig>::NodeId: PartialEq,
<C as RaftTypeConfig>::Node: PartialEq,
impl<C> PartialEq for EntryPayload<C>where
C: PartialEq + RaftTypeConfig,
<C as RaftTypeConfig>::D: PartialEq,
<C as RaftTypeConfig>::NodeId: PartialEq,
<C as RaftTypeConfig>::Node: PartialEq,
Source§fn eq(&self, other: &EntryPayload<C>) -> bool
fn eq(&self, other: &EntryPayload<C>) -> bool
Tests for
self and other values to be equal, and is used by ==.Source§impl<C> RaftPayload<<C as RaftTypeConfig>::NodeId, <C as RaftTypeConfig>::Node> for EntryPayload<C>where
C: RaftTypeConfig,
impl<C> RaftPayload<<C as RaftTypeConfig>::NodeId, <C as RaftTypeConfig>::Node> for EntryPayload<C>where
C: RaftTypeConfig,
Source§fn get_membership(
&self,
) -> Option<&Membership<<C as RaftTypeConfig>::NodeId, <C as RaftTypeConfig>::Node>>
fn get_membership( &self, ) -> Option<&Membership<<C as RaftTypeConfig>::NodeId, <C as RaftTypeConfig>::Node>>
Return
Some(&Membership) if the entry payload is a membership payload.Source§impl<C> Serialize for EntryPayload<C>
impl<C> Serialize for EntryPayload<C>
Source§fn serialize<__S>(
&self,
__serializer: __S,
) -> Result<<__S as Serializer>::Ok, <__S as Serializer>::Error>where
__S: Serializer,
fn serialize<__S>(
&self,
__serializer: __S,
) -> Result<<__S as Serializer>::Ok, <__S as Serializer>::Error>where
__S: Serializer,
Serialize this value into the given Serde serializer. Read more
impl<C> StructuralPartialEq for EntryPayload<C>where
C: RaftTypeConfig,
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> UnsafeUnpin 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§
impl<T> AppData for Twhere
T: OptionalSend + OptionalSync + 'static + OptionalSerde,
impl<T> AppDataResponse for Twhere
T: OptionalSend + OptionalSync + 'static + OptionalSerde,
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
Source§impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> DeserializeOwned for Twhere
T: for<'de> Deserialize<'de>,
Source§impl<T> Instrument for T
impl<T> Instrument for T
Source§fn instrument(self, span: Span) -> Instrumented<Self>
fn instrument(self, span: Span) -> Instrumented<Self>
Source§fn in_current_span(self) -> Instrumented<Self>
fn in_current_span(self) -> Instrumented<Self>
Source§impl<T> Instrument for T
impl<T> Instrument for T
Source§fn instrument(self, span: Span) -> Instrumented<Self>
fn instrument(self, span: Span) -> Instrumented<Self>
Source§fn in_current_span(self) -> Instrumented<Self>
fn in_current_span(self) -> Instrumented<Self>
Source§impl<T> IntoEither for T
impl<T> IntoEither for T
Source§fn into_either(self, into_left: bool) -> Either<Self, Self>
fn into_either(self, into_left: bool) -> Either<Self, Self>
Converts
self into a Left variant of Either<Self, Self>
if into_left is true.
Converts self into a Right variant of Either<Self, Self>
otherwise. Read moreSource§fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
Converts
self into a Left variant of Either<Self, Self>
if into_left(&self) returns true.
Converts self into a Right variant of Either<Self, Self>
otherwise. Read more