pub struct IncrementalSnapshotHashes {
pub base: (Slot, Hash),
pub hashes: Vec<(Slot, Hash)>,
}
Expand description
IncrementalSnapshotHashes is used by SnapshotPackagerService to collect the snapshot hashes
from incremental snapshots and then push those hashes to CRDS. base
is the (full) snapshot
all the incremental snapshots (hashes
) are based on.
Fields§
§base: (Slot, Hash)
§hashes: Vec<(Slot, Hash)>
Trait Implementations§
source§impl Clone for IncrementalSnapshotHashes
impl Clone for IncrementalSnapshotHashes
source§fn clone(&self) -> IncrementalSnapshotHashes
fn clone(&self) -> IncrementalSnapshotHashes
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 IncrementalSnapshotHashes
impl Debug for IncrementalSnapshotHashes
source§impl Default for IncrementalSnapshotHashes
impl Default for IncrementalSnapshotHashes
source§fn default() -> IncrementalSnapshotHashes
fn default() -> IncrementalSnapshotHashes
Returns the “default value” for a type. Read more
source§impl PartialEq<IncrementalSnapshotHashes> for IncrementalSnapshotHashes
impl PartialEq<IncrementalSnapshotHashes> for IncrementalSnapshotHashes
source§fn eq(&self, other: &IncrementalSnapshotHashes) -> bool
fn eq(&self, other: &IncrementalSnapshotHashes) -> bool
This method tests for
self
and other
values to be equal, and is used
by ==
.impl Eq for IncrementalSnapshotHashes
impl StructuralEq for IncrementalSnapshotHashes
impl StructuralPartialEq for IncrementalSnapshotHashes
Auto Trait Implementations§
impl RefUnwindSafe for IncrementalSnapshotHashes
impl Send for IncrementalSnapshotHashes
impl Sync for IncrementalSnapshotHashes
impl Unpin for IncrementalSnapshotHashes
impl UnwindSafe for IncrementalSnapshotHashes
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.