Struct solana_runtime::snapshot_hash::FullSnapshotHash
source · pub struct FullSnapshotHash {
pub hash: (Slot, Hash),
}
Expand description
Used by SnapshotPackagerService and SnapshotGossipManager, this struct adds type safety to ensure a full snapshot hash is pushed to the right CRDS.
Fields§
§hash: (Slot, Hash)
Trait Implementations§
source§impl Clone for FullSnapshotHash
impl Clone for FullSnapshotHash
source§fn clone(&self) -> FullSnapshotHash
fn clone(&self) -> FullSnapshotHash
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 FullSnapshotHash
impl Debug for FullSnapshotHash
source§impl Default for FullSnapshotHash
impl Default for FullSnapshotHash
source§fn default() -> FullSnapshotHash
fn default() -> FullSnapshotHash
Returns the “default value” for a type. Read more
source§impl PartialEq<FullSnapshotHash> for FullSnapshotHash
impl PartialEq<FullSnapshotHash> for FullSnapshotHash
source§fn eq(&self, other: &FullSnapshotHash) -> bool
fn eq(&self, other: &FullSnapshotHash) -> bool
This method tests for
self
and other
values to be equal, and is used
by ==
.impl Copy for FullSnapshotHash
impl Eq for FullSnapshotHash
impl StructuralEq for FullSnapshotHash
impl StructuralPartialEq for FullSnapshotHash
Auto Trait Implementations§
impl RefUnwindSafe for FullSnapshotHash
impl Send for FullSnapshotHash
impl Sync for FullSnapshotHash
impl Unpin for FullSnapshotHash
impl UnwindSafe for FullSnapshotHash
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.