Struct ethcore::snapshot::ManifestData
source · [−]pub struct ManifestData {
pub version: u64,
pub state_hashes: Vec<H256, Global>,
pub block_hashes: Vec<H256, Global>,
pub state_root: H256,
pub block_number: u64,
pub block_hash: H256,
}
Expand description
Manifest data.
Fields
version: u64
Snapshot format version.
state_hashes: Vec<H256, Global>
List of state chunk hashes.
block_hashes: Vec<H256, Global>
List of block chunk hashes.
state_root: H256
The final, expected state root.
block_number: u64
Block number this snapshot was taken at.
block_hash: H256
Block hash this snapshot was taken at.
Implementations
sourceimpl ManifestData
impl ManifestData
Trait Implementations
sourceimpl Clone for ManifestData
impl Clone for ManifestData
sourcepub fn clone(&self) -> ManifestData
pub fn clone(&self) -> ManifestData
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 more
sourceimpl Debug for ManifestData
impl Debug for ManifestData
sourceimpl PartialEq<ManifestData> for ManifestData
impl PartialEq<ManifestData> for ManifestData
sourcepub fn eq(&self, other: &ManifestData) -> bool
pub fn eq(&self, other: &ManifestData) -> bool
This method tests for self
and other
values to be equal, and is used
by ==
. Read more
sourcepub fn ne(&self, other: &ManifestData) -> bool
pub fn ne(&self, other: &ManifestData) -> bool
This method tests for !=
.
impl Eq for ManifestData
impl StructuralEq for ManifestData
impl StructuralPartialEq for ManifestData
Auto Trait Implementations
impl RefUnwindSafe for ManifestData
impl Send for ManifestData
impl Sync for ManifestData
impl Unpin for ManifestData
impl UnwindSafe for ManifestData
Blanket Implementations
sourceimpl<T> BorrowMut<T> for T where
T: ?Sized,
impl<T> BorrowMut<T> for T where
T: ?Sized,
const: unstable · sourcepub fn borrow_mut(&mut self) -> &mut T
pub fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more
sourceimpl<Q, K> Equivalent<K> for Q where
Q: Eq + ?Sized,
K: Borrow<Q> + ?Sized,
impl<Q, K> Equivalent<K> for Q where
Q: Eq + ?Sized,
K: Borrow<Q> + ?Sized,
sourcepub fn equivalent(&self, key: &K) -> bool
pub fn equivalent(&self, key: &K) -> bool
Compare self to key
and return true
if they are equal.
sourceimpl<T> ToOwned for T where
T: Clone,
impl<T> ToOwned for T where
T: Clone,
type Owned = T
type Owned = T
The resulting type after obtaining ownership.
sourcepub fn to_owned(&self) -> T
pub fn to_owned(&self) -> T
Creates owned data from borrowed data, usually by cloning. Read more
sourcepub fn clone_into(&self, target: &mut T)
pub fn clone_into(&self, target: &mut T)
🔬 This is a nightly-only experimental API. (
toowned_clone_into
)Uses borrowed data to replace owned data, usually by cloning. Read more