Trait ethcore::snapshot::io::SnapshotReader
[−]
[src]
pub trait SnapshotReader { fn manifest(&self) -> &ManifestData; fn chunk(&self, hash: H256) -> Result<Bytes>; }
Something which can read compressed snapshots.
Required Methods
fn manifest(&self) -> &ManifestData
Get the manifest data for this snapshot.
fn chunk(&self, hash: H256) -> Result<Bytes>
Get raw chunk data by hash. implementation defined behavior if a chunk not in the manifest is requested.
Implementors
impl SnapshotReader for PackedReader
impl SnapshotReader for LooseReader