pub struct GroupEpoch(/* private fields */);
Expand description
Group epoch. Internally this is stored as a u64
.
The group epoch is incremented with every valid Commit that is merged into the group state.
Implementations§
Trait Implementations§
Source§impl Clone for GroupEpoch
impl Clone for GroupEpoch
Source§fn clone(&self) -> GroupEpoch
fn clone(&self) -> GroupEpoch
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 GroupEpoch
impl Debug for GroupEpoch
Source§impl<'de> Deserialize<'de> for GroupEpoch
impl<'de> Deserialize<'de> for GroupEpoch
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 Deserialize for GroupEpoch
impl Deserialize for GroupEpoch
Source§fn tls_deserialize<R: Read>(bytes: &mut R) -> Result<Self, Error>
fn tls_deserialize<R: Read>(bytes: &mut R) -> Result<Self, Error>
This function deserializes the
bytes
from the provided a std::io::Read
and returns the populated struct. Read moreSource§impl DeserializeBytes for GroupEpoch
impl DeserializeBytes for GroupEpoch
Source§impl Display for GroupEpoch
impl Display for GroupEpoch
Source§impl From<u64> for GroupEpoch
impl From<u64> for GroupEpoch
Source§impl Hash for GroupEpoch
impl Hash for GroupEpoch
Source§impl Ord for GroupEpoch
impl Ord for GroupEpoch
Source§fn cmp(&self, other: &GroupEpoch) -> Ordering
fn cmp(&self, other: &GroupEpoch) -> Ordering
1.21.0 · Source§fn max(self, other: Self) -> Selfwhere
Self: Sized,
fn max(self, other: Self) -> Selfwhere
Self: Sized,
Compares and returns the maximum of two values. Read more
Source§impl PartialEq for GroupEpoch
impl PartialEq for GroupEpoch
Source§impl PartialOrd for GroupEpoch
impl PartialOrd for GroupEpoch
Source§impl Serialize for &GroupEpoch
impl Serialize for &GroupEpoch
Source§impl Serialize for GroupEpoch
impl Serialize for GroupEpoch
Source§impl Serialize for GroupEpoch
impl Serialize for GroupEpoch
Source§impl Size for &GroupEpoch
impl Size for &GroupEpoch
fn tls_serialized_len(&self) -> usize
Source§impl Size for GroupEpoch
impl Size for GroupEpoch
fn tls_serialized_len(&self) -> usize
impl Copy for GroupEpoch
impl EpochKey<CURRENT_VERSION> for GroupEpoch
impl Eq for GroupEpoch
impl Key<CURRENT_VERSION> for GroupEpoch
impl StructuralPartialEq for GroupEpoch
Auto Trait Implementations§
impl Freeze for GroupEpoch
impl RefUnwindSafe for GroupEpoch
impl Send for GroupEpoch
impl Sync for GroupEpoch
impl Unpin for GroupEpoch
impl UnwindSafe for GroupEpoch
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
Source§impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
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