pub struct IncrementalSnapshotHash(pub (Slot, SnapshotHash));
Expand description
Used by SnapshotPackagerService and SnapshotGossipManager, this struct adds type safety to ensure an incremental snapshot hash is pushed to the right CRDS.
Tuple Fields§
§0: (Slot, SnapshotHash)
Trait Implementations§
source§impl Clone for IncrementalSnapshotHash
impl Clone for IncrementalSnapshotHash
source§fn clone(&self) -> IncrementalSnapshotHash
fn clone(&self) -> IncrementalSnapshotHash
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 IncrementalSnapshotHash
impl Debug for IncrementalSnapshotHash
source§impl PartialEq<IncrementalSnapshotHash> for IncrementalSnapshotHash
impl PartialEq<IncrementalSnapshotHash> for IncrementalSnapshotHash
source§fn eq(&self, other: &IncrementalSnapshotHash) -> bool
fn eq(&self, other: &IncrementalSnapshotHash) -> bool
This method tests for
self
and other
values to be equal, and is used
by ==
.impl Copy for IncrementalSnapshotHash
impl Eq for IncrementalSnapshotHash
impl StructuralEq for IncrementalSnapshotHash
impl StructuralPartialEq for IncrementalSnapshotHash
Auto Trait Implementations§
impl RefUnwindSafe for IncrementalSnapshotHash
impl Send for IncrementalSnapshotHash
impl Sync for IncrementalSnapshotHash
impl Unpin for IncrementalSnapshotHash
impl UnwindSafe for IncrementalSnapshotHash
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
§impl<Q, K> Equivalent<K> for Qwhere
Q: Eq + ?Sized,
K: Borrow<Q> + ?Sized,
impl<Q, K> Equivalent<K> for Qwhere Q: Eq + ?Sized, K: Borrow<Q> + ?Sized,
§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<Q, K> Equivalent<K> for Qwhere
Q: Eq + ?Sized,
K: Borrow<Q> + ?Sized,
impl<Q, K> Equivalent<K> for Qwhere Q: Eq + ?Sized, K: Borrow<Q> + ?Sized,
source§fn equivalent(&self, key: &K) -> bool
fn equivalent(&self, key: &K) -> bool
Compare self to
key
and return true
if they are equal.