Struct cfx_storage::FullSyncVerifier
source · pub struct FullSyncVerifier<SnapshotDbManager: SnapshotDbManagerTrait> { /* private fields */ }
Implementations§
source§impl<SnapshotDbManager: SnapshotDbManagerTrait> FullSyncVerifier<SnapshotDbManager>
impl<SnapshotDbManager: SnapshotDbManagerTrait> FullSyncVerifier<SnapshotDbManager>
pub fn new( number_chunks: usize, chunk_boundaries: Vec<Vec<u8>>, chunk_boundary_proofs: Vec<TrieProof>, merkle_root: MerkleHash, snapshot_db_manager: &SnapshotDbManager, epoch_id: &EpochId, epoch_height: u64 ) -> Result<Self>
pub fn is_completed(&self) -> bool
pub fn restore_chunk<Key: Borrow<[u8]> + Debug>( &mut self, chunk_upper_key: &Option<Vec<u8>>, keys: &Vec<Key>, values: Vec<Vec<u8>> ) -> Result<bool>
Auto Trait Implementations§
impl<SnapshotDbManager> RefUnwindSafe for FullSyncVerifier<SnapshotDbManager>
impl<SnapshotDbManager> Send for FullSyncVerifier<SnapshotDbManager>
impl<SnapshotDbManager> Sync for FullSyncVerifier<SnapshotDbManager>
impl<SnapshotDbManager> Unpin for FullSyncVerifier<SnapshotDbManager>
impl<SnapshotDbManager> UnwindSafe for FullSyncVerifier<SnapshotDbManager>
Blanket Implementations§
source§impl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
source§fn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more