pub struct VerificationError(pub VerificationErrorDetail, pub DefaultTracer);Tuple Fields
0: VerificationErrorDetail1: DefaultTracerImplementations
sourceimpl VerificationError
impl VerificationError
pub fn detail(&self) -> &VerificationErrorDetail
pub fn into_detail(self) -> VerificationErrorDetail
pub fn trace(&self) -> &DefaultTracer
pub fn into_trace(self) -> DefaultTracer
pub fn add_trace<E: Display>(self, message: &E) -> Selfwhere
DefaultTracer: ErrorMessageTracer,
pub fn trace_from<E, Cont>(source: E::Source, cont: Cont) -> Selfwhere
E: ErrorSource<DefaultTracer>,
DefaultTracer: ErrorMessageTracer,
Cont: FnOnce(E::Detail) -> VerificationErrorDetail,
sourceimpl VerificationError
impl VerificationError
pub fn tendermint(
source: AsErrorSource<TendermintError, DefaultTracer>
) -> VerificationError
sourceimpl VerificationError
impl VerificationError
pub fn header_from_the_future(header_time: Time, now: Time) -> VerificationError
sourceimpl VerificationError
impl VerificationError
pub fn not_enough_trust(tally: VotingPowerTally) -> VerificationError
sourceimpl VerificationError
impl VerificationError
pub fn insufficient_signers_overlap(
tally: VotingPowerTally
) -> VerificationError
sourceimpl VerificationError
impl VerificationError
pub fn duplicate_validator(address: ValidatorAddress) -> VerificationError
sourceimpl VerificationError
impl VerificationError
pub fn missing_signature() -> VerificationError
sourceimpl VerificationError
impl VerificationError
pub fn invalid_signature(
signature: Vec<u8>,
validator: Box<Validator>,
sign_bytes: Vec<u8>
) -> VerificationError
sourceimpl VerificationError
impl VerificationError
pub fn invalid_commit_value(
header_hash: Hash,
commit_hash: Hash
) -> VerificationError
sourceimpl VerificationError
impl VerificationError
pub fn invalid_next_validator_set(
header_next_validators_hash: Hash,
next_validators_hash: Hash
) -> VerificationError
sourceimpl VerificationError
impl VerificationError
pub fn invalid_validator_set(
header_validators_hash: Hash,
validators_hash: Hash
) -> VerificationError
sourceimpl VerificationError
impl VerificationError
pub fn non_increasing_height(got: Height, expected: Height) -> VerificationError
sourceimpl VerificationError
impl VerificationError
pub fn non_monotonic_bft_time(
header_bft_time: Time,
trusted_header_bft_time: Time
) -> VerificationError
sourceimpl VerificationError
impl VerificationError
pub fn not_within_trust_period(expires_at: Time, now: Time) -> VerificationError
sourceimpl VerificationError
impl VerificationError
pub fn no_signature_for_commit() -> VerificationError
sourceimpl VerificationError
impl VerificationError
pub fn mismatch_pre_commit_length(
pre_commit_length: usize,
validator_length: usize
) -> VerificationError
sourceimpl VerificationError
impl VerificationError
pub fn faulty_signer(signer: Id, validator_set: Hash) -> VerificationError
Trait Implementations
sourceimpl Debug for VerificationErrorwhere
DefaultTracer: Debug,
impl Debug for VerificationErrorwhere
DefaultTracer: Debug,
sourceimpl Display for VerificationErrorwhere
DefaultTracer: Debug,
impl Display for VerificationErrorwhere
DefaultTracer: Debug,
sourceimpl Error for VerificationErrorwhere
VerificationErrorDetail: Display,
DefaultTracer: Debug + Display,
DefaultTracer: ErrorMessageTracer,
impl Error for VerificationErrorwhere
VerificationErrorDetail: Display,
DefaultTracer: Debug + Display,
DefaultTracer: ErrorMessageTracer,
sourcefn source(&self) -> Option<&(dyn StdError + 'static)>
fn source(&self) -> Option<&(dyn StdError + 'static)>
The lower-level source of this error, if any. Read more
1.0.0 · sourcefn description(&self) -> &str
fn description(&self) -> &str
👎Deprecated since 1.42.0: use the Display impl or to_string()
sourceimpl ErrorSource<Report> for VerificationError
impl ErrorSource<Report> for VerificationError
type Source = VerificationError
type Source = VerificationError
The type of the error source.
type Detail = VerificationErrorDetail
type Detail = VerificationErrorDetail
The type of the error detail that can be extracted from the error source
sourcefn error_details(
VerificationError: Self
) -> (VerificationErrorDetail, Option<DefaultTracer>)
fn error_details(
VerificationError: Self
) -> (VerificationErrorDetail, Option<DefaultTracer>)
Extracts the error details out from the error source, together with
an optional error trace. Read more
Auto Trait Implementations
impl !RefUnwindSafe for VerificationError
impl Send for VerificationError
impl Sync for VerificationError
impl Unpin for VerificationError
impl !UnwindSafe for VerificationError
Blanket Implementations
sourceimpl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
const: unstable · sourcefn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more