pub struct StartingSnapshotHashes {
pub full: FullSnapshotHash,
pub incremental: Option<IncrementalSnapshotHash>,
}
Expand description
At startup, when loading from snapshots, the starting snapshot hashes need to be passed to SnapshotPackagerService, which is in charge of pushing the hashes to CRDS. This struct wraps up those values make it easier to pass from bank_forks_utils, through validator, to SnapshotPackagerService.
Fields§
§full: FullSnapshotHash
§incremental: Option<IncrementalSnapshotHash>
Trait Implementations§
source§impl Clone for StartingSnapshotHashes
impl Clone for StartingSnapshotHashes
source§fn clone(&self) -> StartingSnapshotHashes
fn clone(&self) -> StartingSnapshotHashes
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 StartingSnapshotHashes
impl Debug for StartingSnapshotHashes
source§impl Default for StartingSnapshotHashes
impl Default for StartingSnapshotHashes
source§fn default() -> StartingSnapshotHashes
fn default() -> StartingSnapshotHashes
Returns the “default value” for a type. Read more
source§impl PartialEq<StartingSnapshotHashes> for StartingSnapshotHashes
impl PartialEq<StartingSnapshotHashes> for StartingSnapshotHashes
source§fn eq(&self, other: &StartingSnapshotHashes) -> bool
fn eq(&self, other: &StartingSnapshotHashes) -> bool
This method tests for
self
and other
values to be equal, and is used
by ==
.impl Copy for StartingSnapshotHashes
impl Eq for StartingSnapshotHashes
impl StructuralEq for StartingSnapshotHashes
impl StructuralPartialEq for StartingSnapshotHashes
Auto Trait Implementations§
impl RefUnwindSafe for StartingSnapshotHashes
impl Send for StartingSnapshotHashes
impl Sync for StartingSnapshotHashes
impl Unpin for StartingSnapshotHashes
impl UnwindSafe for StartingSnapshotHashes
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.