pub struct ProdCommitValidator;
Expand description
Production-ready implementation of a commit validator.
Trait Implementations§
source§impl Clone for ProdCommitValidator
impl Clone for ProdCommitValidator
source§fn clone(&self) -> ProdCommitValidator
fn clone(&self) -> ProdCommitValidator
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 CommitValidator for ProdCommitValidator
impl CommitValidator for ProdCommitValidator
source§fn validate(
&self,
signed_header: &SignedHeader,
validator_set: &Set
) -> Result<(), VerificationError>
fn validate( &self, signed_header: &SignedHeader, validator_set: &Set ) -> Result<(), VerificationError>
Perform basic validation
source§fn validate_full(
&self,
signed_header: &SignedHeader,
validator_set: &Set
) -> Result<(), VerificationError>
fn validate_full( &self, signed_header: &SignedHeader, validator_set: &Set ) -> Result<(), VerificationError>
Perform full validation, only necessary if we do full verification (2/3)
source§impl Debug for ProdCommitValidator
impl Debug for ProdCommitValidator
source§impl Default for ProdCommitValidator
impl Default for ProdCommitValidator
source§fn default() -> ProdCommitValidator
fn default() -> ProdCommitValidator
Returns the “default value” for a type. Read more
source§impl PartialEq for ProdCommitValidator
impl PartialEq for ProdCommitValidator
source§fn eq(&self, other: &ProdCommitValidator) -> bool
fn eq(&self, other: &ProdCommitValidator) -> bool
This method tests for
self
and other
values to be equal, and is used
by ==
.impl Copy for ProdCommitValidator
impl Eq for ProdCommitValidator
impl StructuralPartialEq for ProdCommitValidator
Auto Trait Implementations§
impl Freeze for ProdCommitValidator
impl RefUnwindSafe for ProdCommitValidator
impl Send for ProdCommitValidator
impl Sync for ProdCommitValidator
impl Unpin for ProdCommitValidator
impl UnwindSafe for ProdCommitValidator
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<Q, K> Equivalent<K> for Q
impl<Q, K> Equivalent<K> for Q
source§impl<Q, K> Equivalent<K> for Q
impl<Q, K> Equivalent<K> for Q
source§fn equivalent(&self, key: &K) -> bool
fn equivalent(&self, key: &K) -> bool
Compare self to
key
and return true
if they are equal.