pub struct IncrementalSnapshotHash {
pub base: (Slot, Hash),
pub hash: (Slot, Hash),
}
Expand description
Used by SnapshotPackagerService and SnapshotGossipManager, this struct adds type safety to
ensure an incremental snapshot hash is pushed to the right CRDS. base
is the (full) snapshot
this incremental snapshot (hash
) is based on.
Fields§
§base: (Slot, Hash)
§hash: (Slot, Hash)
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 Default for IncrementalSnapshotHash
impl Default for IncrementalSnapshotHash
source§fn default() -> IncrementalSnapshotHash
fn default() -> IncrementalSnapshotHash
Returns the “default value” for a type. Read more
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<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.