ibc_types::lightclients::tendermint

Enum Error

pub enum Error {
Show 41 variants ChainIdTooLong { chain_id: ChainId, len: usize, max_len: usize, }, InvalidHeader { reason: String, error: Error, }, InvalidTrustThreshold { reason: String, }, FailedTrustThresholdConversion { numerator: u64, denominator: u64, }, InvalidTendermintTrustThreshold(Error), InvalidMaxClockDrift { reason: String, }, InvalidLatestHeight { reason: String, }, MissingSignedHeader, Validation { reason: String, }, InvalidRawClientState { reason: String, }, MissingValidatorSet, MissingTrustedValidatorSet, MissingTrustedHeight, MissingTrustingPeriod, MissingUnbondingPeriod, NegativeMaxClockDrift, MissingLatestHeight, InvalidRawHeader(Error), InvalidRawMisbehaviour { reason: String, }, Decode(DecodeError), WrongTypeUrl { url: String, }, HeaderTimestampTooHigh { actual: String, max: String, }, HeaderTimestampTooLow { actual: String, min: String, }, TimestampOverflow(TimestampOverflowError), NotEnoughTimeElapsed { current_time: Timestamp, earliest_time: Timestamp, }, NotEnoughBlocksElapsed { current_height: Height, earliest_height: Height, }, InvalidHeaderHeight { height: u64, }, MismatchedRevisions { current_revision: u64, update_revision: u64, }, NotEnoughTrustedValsSigned { reason: VotingPowerTally, }, VerificationError { detail: VerificationErrorDetail, }, ProcessedTimeNotFound { client_id: ClientId, height: Height, }, ProcessedHeightNotFound { client_id: ClientId, height: Height, }, InsufficientHeight { latest_height: Height, target_height: Height, }, ClientFrozen { frozen_height: Height, target_height: Height, }, MisbehaviourTrustedValidatorHashMismatch { trusted_validator_set: Vec<Info>, next_validators_hash: Hash, trusted_val_hash: Hash, }, ConsensusStateTimestampGteTrustingPeriod { duration_since_consensus_state: Duration, trusting_period: Duration, }, MisbehaviourHeadersBlockHashesEqual, MisbehaviourHeadersNotAtSameHeight, MisbehaviourHeadersChainIdMismatch { header_chain_id: String, chain_id: String, }, MismatchValidatorsHashes { validators_hash: Hash, signed_header_validators_hash: Hash, }, InvalidRawClientId { client_id: String, },
}

Variants§

§

ChainIdTooLong

chain-id is ({chain_id}) is too long, got: {len}, max allowed: {max_len}

Fields

§chain_id: ChainId
§len: usize
§max_len: usize
§

InvalidHeader

invalid header, failed basic validation: {reason}, error: {error}

Fields

§reason: String
§error: Error
§

InvalidTrustThreshold

invalid client state trust threshold: {reason}

Fields

§reason: String
§

FailedTrustThresholdConversion

failed to build Tendermint domain type trust threshold from fraction: {numerator}/{denominator}

Fields

§numerator: u64
§denominator: u64
§

InvalidTendermintTrustThreshold(Error)

invalid tendermint client state trust threshold error: {0}

§

InvalidMaxClockDrift

invalid client state max clock drift: {reason}

Fields

§reason: String
§

InvalidLatestHeight

invalid client state latest height: {reason}

Fields

§reason: String
§

MissingSignedHeader

missing signed header

§

Validation

invalid header, failed basic validation: {reason}

Fields

§reason: String
§

InvalidRawClientState

invalid raw client state: {reason}

Fields

§reason: String
§

MissingValidatorSet

missing validator set

§

MissingTrustedValidatorSet

missing trusted validator set

§

MissingTrustedHeight

missing trusted height

§

MissingTrustingPeriod

missing trusting period

§

MissingUnbondingPeriod

missing unbonding period

§

NegativeMaxClockDrift

negative max clock drift

§

MissingLatestHeight

missing latest height

§

InvalidRawHeader(Error)

invalid raw header error: {0}

§

InvalidRawMisbehaviour

invalid raw misbehaviour: {reason}

Fields

§reason: String
§

Decode(DecodeError)

decode error: {0}

§

WrongTypeUrl

wrong type url for tendermint light client state: {url}

Fields

§

HeaderTimestampTooHigh

given other previous updates, header timestamp should be at most {max}, but was {actual}

Fields

§actual: String
§

HeaderTimestampTooLow

given other previous updates, header timestamp should be at least {min}, but was {actual}

Fields

§actual: String
§

TimestampOverflow(TimestampOverflowError)

timestamp overflowed error: {0}

§

NotEnoughTimeElapsed

not enough time elapsed, current timestamp {current_time} is still less than earliest acceptable timestamp {earliest_time}

Fields

§current_time: Timestamp
§earliest_time: Timestamp
§

NotEnoughBlocksElapsed

not enough blocks elapsed, current height {current_height} is still less than earliest acceptable height {earliest_height}

Fields

§current_height: Height
§earliest_height: Height
§

InvalidHeaderHeight

header revision height = {height} is invalid

Fields

§height: u64
§

MismatchedRevisions

the header’s current/trusted revision number ({current_revision}) and the update’s revision number ({update_revision}) should be the same

Fields

§current_revision: u64
§update_revision: u64
§

NotEnoughTrustedValsSigned

not enough trust because insufficient validators overlap: {reason}

Fields

§reason: VotingPowerTally
§

VerificationError

verification failed: {detail}

Fields

§detail: VerificationErrorDetail
§

ProcessedTimeNotFound

Processed time for the client {client_id} at height {height} not found

Fields

§client_id: ClientId
§height: Height
§

ProcessedHeightNotFound

Processed height for the client {client_id} at height {height} not found

Fields

§client_id: ClientId
§height: Height
§

InsufficientHeight

the height is insufficient: latest_height={latest_height} target_height={target_height}

Fields

§latest_height: Height
§target_height: Height
§

ClientFrozen

the client is frozen: frozen_height={frozen_height} target_height={target_height}

Fields

§frozen_height: Height
§target_height: Height
§

MisbehaviourTrustedValidatorHashMismatch

trusted validators {trusted_validator_set:?}, does not hash to latest trusted validators. Expected: {next_validators_hash}, got: {trusted_val_hash}

Fields

§trusted_validator_set: Vec<Info>
§next_validators_hash: Hash
§trusted_val_hash: Hash
§

ConsensusStateTimestampGteTrustingPeriod

current timestamp minus the latest consensus state timestamp is greater than or equal to the trusting period ({duration_since_consensus_state:?} >= {trusting_period:?})

Fields

§duration_since_consensus_state: Duration
§trusting_period: Duration
§

MisbehaviourHeadersBlockHashesEqual

headers block hashes are equal

§

MisbehaviourHeadersNotAtSameHeight

headers are not at same height and are monotonically increasing

§

MisbehaviourHeadersChainIdMismatch

header chain-id {header_chain_id} does not match the light client’s chain-id {chain_id})

Fields

§header_chain_id: String
§chain_id: String
§

MismatchValidatorsHashes

The given hash of the validators does not matches the given hash in the signed header. Expected: {signed_header_validators_hash}, got: {validators_hash}

Fields

§validators_hash: Hash
§signed_header_validators_hash: Hash
§

InvalidRawClientId

invalid raw client id: {client_id}

Fields

§client_id: String

Trait Implementations§

§

impl Debug for Error

§

fn fmt(&self, f: &mut Formatter<'_>) -> Result<(), Error>

Formats the value using the given formatter. Read more
§

impl Display for Error

§

fn fmt(&self, formatter: &mut Formatter<'_>) -> Result<(), Error>

Formats the value using the given formatter. Read more
§

impl Error for Error

Available on crate feature std only.
§

fn source(&self) -> Option<&(dyn Error + 'static)>

Returns the lower-level source of this error, if any. Read more
1.0.0 · Source§

fn description(&self) -> &str

👎Deprecated since 1.42.0: use the Display impl or to_string()
1.0.0 · Source§

fn cause(&self) -> Option<&dyn Error>

👎Deprecated since 1.33.0: replaced by Error::source, which can support downcasting
Source§

fn provide<'a>(&'a self, request: &mut Request<'a>)

🔬This is a nightly-only experimental API. (error_generic_member_access)
Provides type-based access to context intended for error reports. Read more

Auto Trait Implementations§

§

impl Freeze for Error

§

impl !RefUnwindSafe for Error

§

impl Send for Error

§

impl Sync for Error

§

impl Unpin for Error

§

impl !UnwindSafe for Error

Blanket Implementations§

Source§

impl<T> Any for T
where T: 'static + ?Sized,

Source§

fn type_id(&self) -> TypeId

Gets the TypeId of self. Read more
Source§

impl<T> Borrow<T> for T
where T: ?Sized,

Source§

fn borrow(&self) -> &T

Immutably borrows from an owned value. Read more
Source§

impl<T> BorrowMut<T> for T
where T: ?Sized,

Source§

fn borrow_mut(&mut self) -> &mut T

Mutably borrows from an owned value. Read more
Source§

impl<T> From<T> for T

Source§

fn from(t: T) -> T

Returns the argument unchanged.

§

impl<T> Instrument for T

§

fn instrument(self, span: Span) -> Instrumented<Self>

Instruments this type with the provided [Span], returning an Instrumented wrapper. Read more
§

fn in_current_span(self) -> Instrumented<Self>

Instruments this type with the current Span, returning an Instrumented wrapper. Read more
Source§

impl<T, U> Into<U> for T
where U: From<T>,

Source§

fn into(self) -> U

Calls U::from(self).

That is, this conversion is whatever the implementation of From<T> for U chooses to do.

Source§

impl<T> IntoRequest<T> for T

Source§

fn into_request(self) -> Request<T>

Wrap the input message T in a tonic::Request
Source§

impl<T> Same for T

Source§

type Output = T

Should always be Self
Source§

impl<T> ToString for T
where T: Display + ?Sized,

Source§

fn to_string(&self) -> String

Converts the given value to a String. Read more
Source§

impl<T, U> TryFrom<U> for T
where U: Into<T>,

Source§

type Error = Infallible

The type returned in the event of a conversion error.
Source§

fn try_from(value: U) -> Result<T, <T as TryFrom<U>>::Error>

Performs the conversion.
Source§

impl<T, U> TryInto<U> for T
where U: TryFrom<T>,

Source§

type Error = <U as TryFrom<T>>::Error

The type returned in the event of a conversion error.
Source§

fn try_into(self) -> Result<U, <U as TryFrom<T>>::Error>

Performs the conversion.
§

impl<V, T> VZip<V> for T
where V: MultiLane<T>,

§

fn vzip(self) -> V

§

impl<T> WithSubscriber for T

§

fn with_subscriber<S>(self, subscriber: S) -> WithDispatch<Self>
where S: Into<Dispatch>,

Attaches the provided Subscriber to this type, returning a [WithDispatch] wrapper. Read more
§

fn with_current_subscriber(self) -> WithDispatch<Self>

Attaches the current default Subscriber to this type, returning a [WithDispatch] wrapper. Read more