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
sourceimpl Clone for IncrementalSnapshotHash
impl Clone for IncrementalSnapshotHash
sourcefn clone(&self) -> IncrementalSnapshotHash
fn clone(&self) -> IncrementalSnapshotHash
Returns a copy of the value. Read more
1.0.0 · sourceconst fn clone_from(&mut self, source: &Self)
const fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source
. Read moresourceimpl Debug for IncrementalSnapshotHash
impl Debug for IncrementalSnapshotHash
sourceimpl Default for IncrementalSnapshotHash
impl Default for IncrementalSnapshotHash
sourcefn default() -> IncrementalSnapshotHash
fn default() -> IncrementalSnapshotHash
Returns the “default value” for a type. Read more
sourceimpl PartialEq<IncrementalSnapshotHash> for IncrementalSnapshotHash
impl PartialEq<IncrementalSnapshotHash> for IncrementalSnapshotHash
sourcefn eq(&self, other: &IncrementalSnapshotHash) -> bool
fn eq(&self, other: &IncrementalSnapshotHash) -> bool
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
sourceimpl<T> AbiExample for T
impl<T> AbiExample for T
sourceimpl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
const: unstable · sourcefn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more
sourceimpl<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,
sourcefn equivalent(&self, key: &K) -> bool
fn equivalent(&self, key: &K) -> bool
Compare self to
key
and return true
if they are equal.