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
sourceimpl Clone for StartingSnapshotHashes
impl Clone for StartingSnapshotHashes
sourcefn clone(&self) -> StartingSnapshotHashes
fn clone(&self) -> StartingSnapshotHashes
Returns a copy of the value. Read more
1.0.0 · sourcefn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source
. Read moresourceimpl Debug for StartingSnapshotHashes
impl Debug for StartingSnapshotHashes
sourceimpl Default for StartingSnapshotHashes
impl Default for StartingSnapshotHashes
sourcefn default() -> StartingSnapshotHashes
fn default() -> StartingSnapshotHashes
Returns the “default value” for a type. Read more
sourceimpl PartialEq<StartingSnapshotHashes> for StartingSnapshotHashes
impl PartialEq<StartingSnapshotHashes> for StartingSnapshotHashes
sourcefn eq(&self, other: &StartingSnapshotHashes) -> bool
fn eq(&self, other: &StartingSnapshotHashes) -> bool
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
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.