pub struct VerificationError(pub VerificationErrorDetail, pub DefaultTracer);Tuple Fields§
§0: VerificationErrorDetail§1: DefaultTracerImplementations§
Source§impl 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,
Source§impl VerificationError
impl VerificationError
pub fn cometbft( source: AsErrorSource<CometbftError, DefaultTracer>, ) -> VerificationError
Source§impl VerificationError
impl VerificationError
pub fn header_from_the_future( header_time: Time, now: Time, max_clock_drift: Duration, ) -> VerificationError
Source§impl VerificationError
impl VerificationError
pub fn not_enough_trust(tally: VotingPowerTally) -> VerificationError
Source§impl VerificationError
impl VerificationError
pub fn insufficient_signers_overlap( tally: VotingPowerTally, ) -> VerificationError
Source§impl VerificationError
impl VerificationError
pub fn duplicate_validator(address: ValidatorAddress) -> VerificationError
Source§impl VerificationError
impl VerificationError
pub fn missing_signature() -> VerificationError
Source§impl VerificationError
impl VerificationError
pub fn invalid_signature( signature: Vec<u8>, validator: Box<Validator>, sign_bytes: Vec<u8>, ) -> VerificationError
Source§impl VerificationError
impl VerificationError
pub fn invalid_commit_value( header_hash: Hash, commit_hash: Hash, ) -> VerificationError
Source§impl VerificationError
impl VerificationError
pub fn invalid_next_validator_set( header_next_validators_hash: Hash, next_validators_hash: Hash, ) -> VerificationError
Source§impl VerificationError
impl VerificationError
pub fn invalid_validator_set( header_validators_hash: Hash, validators_hash: Hash, ) -> VerificationError
Source§impl VerificationError
impl VerificationError
pub fn non_increasing_height(got: Height, expected: Height) -> VerificationError
Source§impl VerificationError
impl VerificationError
pub fn chain_id_mismatch(got: String, expected: String) -> VerificationError
Source§impl VerificationError
impl VerificationError
pub fn non_monotonic_bft_time( header_bft_time: Time, trusted_header_bft_time: Time, ) -> VerificationError
Source§impl VerificationError
impl VerificationError
pub fn not_within_trust_period(expires_at: Time, now: Time) -> VerificationError
Source§impl VerificationError
impl VerificationError
pub fn no_signature_for_commit() -> VerificationError
Source§impl VerificationError
impl VerificationError
pub fn mismatch_pre_commit_length( pre_commit_length: usize, validator_length: usize, ) -> VerificationError
Source§impl VerificationError
impl VerificationError
pub fn faulty_signer( signer: Id, validator_set: ValidatorSet, ) -> VerificationError
Trait Implementations§
Source§impl Debug for VerificationErrorwhere
DefaultTracer: Debug,
impl Debug for VerificationErrorwhere
DefaultTracer: Debug,
Source§impl Display for VerificationErrorwhere
DefaultTracer: Debug,
impl Display for VerificationErrorwhere
DefaultTracer: Debug,
Source§impl ErrorSource<StringTracer> for VerificationError
impl ErrorSource<StringTracer> for VerificationError
Source§type Source = VerificationError
type Source = VerificationError
The type of the error source.
Source§type Detail = VerificationErrorDetail
type Detail = VerificationErrorDetail
The type of the error detail that can be extracted from the error source
Source§fn 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.
Source§impl Error for VerificationError
impl Error for VerificationError
Source§fn source(&self) -> Option<&(dyn StdError + 'static)>
fn source(&self) -> Option<&(dyn StdError + 'static)>
Returns the lower-level source of this error, if any. Read more
1.0.0 · Source§fn description(&self) -> &str
fn description(&self) -> &str
👎Deprecated since 1.42.0: use the Display impl or to_string()
Auto Trait Implementations§
impl Freeze for VerificationError
impl RefUnwindSafe for VerificationError
impl Send for VerificationError
impl Sync for VerificationError
impl Unpin for VerificationError
impl UnwindSafe for VerificationError
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