Struct GroupEpoch  
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§
§impl GroupEpoch
 
impl GroupEpoch
Trait Implementations§
§impl Clone for GroupEpoch
 
impl Clone for GroupEpoch
§fn clone(&self) -> GroupEpoch
 
fn clone(&self) -> GroupEpoch
Returns a duplicate 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 more§impl Debug for GroupEpoch
 
impl Debug for GroupEpoch
§impl<'de> Deserialize<'de> for GroupEpoch
 
impl<'de> Deserialize<'de> for GroupEpoch
§fn deserialize<__D>(
    __deserializer: __D,
) -> Result<GroupEpoch, <__D as Deserializer<'de>>::Error>where
    __D: Deserializer<'de>,
 
fn deserialize<__D>(
    __deserializer: __D,
) -> Result<GroupEpoch, <__D as Deserializer<'de>>::Error>where
    __D: Deserializer<'de>,
Deserialize this value from the given Serde deserializer. Read more
§impl Deserialize for GroupEpoch
 
impl Deserialize for GroupEpoch
§fn tls_deserialize<R>(bytes: &mut R) -> Result<GroupEpoch, Error>where
    R: Read,
 
fn tls_deserialize<R>(bytes: &mut R) -> Result<GroupEpoch, Error>where
    R: Read,
This function deserializes the 
bytes from the provided a std::io::Read
and returns the populated struct. Read more§impl Display for GroupEpoch
 
impl Display for GroupEpoch
§impl From<u64> for GroupEpoch
 
impl From<u64> for GroupEpoch
§fn from(val: u64) -> GroupEpoch
 
fn from(val: u64) -> GroupEpoch
Converts to this type from the input type.
§impl Hash for GroupEpoch
 
impl Hash for GroupEpoch
§impl Ord for GroupEpoch
 
impl Ord for GroupEpoch
§impl PartialEq for GroupEpoch
 
impl PartialEq for GroupEpoch
§impl PartialOrd for GroupEpoch
 
impl PartialOrd for GroupEpoch
§impl Serialize for &GroupEpoch
 
impl Serialize for &GroupEpoch
§impl Serialize for GroupEpoch
 
impl Serialize for GroupEpoch
§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 Serialize for GroupEpoch
 
impl Serialize for GroupEpoch
§impl Size for &GroupEpoch
 
impl Size for &GroupEpoch
fn tls_serialized_len(&self) -> usize
§impl Size for GroupEpoch
 
impl Size for GroupEpoch
fn tls_serialized_len(&self) -> usize
impl Copy for GroupEpoch
impl Eq 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,
§impl<Q, K> Comparable<K> for Q
 
impl<Q, K> Comparable<K> for Q
§impl<Q, K> Equivalent<K> for Q
 
impl<Q, K> Equivalent<K> for Q
§fn equivalent(&self, key: &K) -> bool
 
fn equivalent(&self, key: &K) -> bool
Checks if this value is equivalent to the given key. Read more
§impl<Q, K> Equivalent<K> for Q
 
impl<Q, K> Equivalent<K> for Q
§fn equivalent(&self, key: &K) -> bool
 
fn equivalent(&self, key: &K) -> bool
Checks if this value is equivalent to the given key. Read more
§impl<Q, K> Equivalent<K> for Q
 
impl<Q, K> Equivalent<K> for Q
§fn equivalent(&self, key: &K) -> bool
 
fn equivalent(&self, key: &K) -> bool
Compare self to 
key and return true if they are equal.§impl<Q, K> Equivalent<K> for Q
 
impl<Q, K> Equivalent<K> for Q
§fn equivalent(&self, key: &K) -> bool
 
fn equivalent(&self, key: &K) -> bool
Checks if this value is equivalent to the given key. Read more
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