pub struct ContextualBlockVerifier<'a, CS, MS> { /* private fields */ }
Expand description
Context-dependent verification checks for block
Contains:
Implementations§
source§impl<'a, CS: ChainStore + VersionbitsIndexer + 'static, MS: MMRStore<HeaderDigest>> ContextualBlockVerifier<'a, CS, MS>
impl<'a, CS: ChainStore + VersionbitsIndexer + 'static, MS: MMRStore<HeaderDigest>> ContextualBlockVerifier<'a, CS, MS>
sourcepub fn new(
context: VerifyContext<CS>,
handle: &'a Handle,
switch: Switch,
txs_verify_cache: Arc<RwLock<TxVerificationCache>>,
chain_root_mmr: &'a ChainRootMMR<MS>
) -> Self
pub fn new( context: VerifyContext<CS>, handle: &'a Handle, switch: Switch, txs_verify_cache: Arc<RwLock<TxVerificationCache>>, chain_root_mmr: &'a ChainRootMMR<MS> ) -> Self
Create new ContextualBlockVerifier
Auto Trait Implementations§
impl<'a, CS, MS> Freeze for ContextualBlockVerifier<'a, CS, MS>
impl<'a, CS, MS> !RefUnwindSafe for ContextualBlockVerifier<'a, CS, MS>
impl<'a, CS, MS> Send for ContextualBlockVerifier<'a, CS, MS>
impl<'a, CS, MS> Sync for ContextualBlockVerifier<'a, CS, MS>
impl<'a, CS, MS> Unpin for ContextualBlockVerifier<'a, CS, MS>
impl<'a, CS, MS> !UnwindSafe for ContextualBlockVerifier<'a, CS, MS>
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
source§impl<T> IntoEither for T
impl<T> IntoEither for T
source§fn into_either(self, into_left: bool) -> Either<Self, Self>
fn into_either(self, into_left: bool) -> Either<Self, Self>
Converts
self
into a Left
variant of Either<Self, Self>
if into_left
is true
.
Converts self
into a Right
variant of Either<Self, Self>
otherwise. Read moresource§fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
Converts
self
into a Left
variant of Either<Self, Self>
if into_left(&self)
returns true
.
Converts self
into a Right
variant of Either<Self, Self>
otherwise. Read more