Enum tendermint::error::Kind[][src]

pub enum Kind {
Show variants Crypto, InvalidKey, UnsupportedKeyType, Io, Length, Parse, Protocol, OutOfRange, SignatureInvalid, InvalidMessageType, NegativeHeight, NegativeRound, NegativePolRound, NegativeValidatorIndex, InvalidHashSize, NoTimestamp, InvalidTimestamp, InvalidAccountIdLength, InvalidSignatureIdLength, IntegerOverflow, NoVoteFound, NoProposalFound, InvalidAppHashLength, InvalidPartSetHeader, MissingHeader, MissingData, MissingEvidence, MissingTimestamp, InvalidBlock, InvalidFirstBlock, MissingVersion, InvalidHeader, InvalidFirstHeader, InvalidSignature, InvalidValidatorAddress, InvalidSignedHeader, InvalidEvidence, BlockIdFlag, NegativePower, RawVotingPowerMismatch { raw: Power, computed: Power, }, MissingPublicKey, InvalidValidatorParams, InvalidVersionParams, NegativeMaxAgeNum, MissingMaxAgeDuration, ProposerNotFound(Id),
}
Expand description

Kinds of errors

Variants

Crypto

Cryptographic operation failed

InvalidKey

Malformatted or otherwise invalid cryptographic key

UnsupportedKeyType

Unsupported public key type.

Io

Input/output error

Length

Length incorrect or too long

Parse

Parse error

Protocol

Network protocol-related errors

OutOfRange

Value out-of-range

SignatureInvalid

Signature invalid

InvalidMessageType

invalid message type

NegativeHeight

Negative block height

NegativeRound

Negative voting round

NegativePolRound

Negative POL round

NegativeValidatorIndex

Negative validator index in vote

InvalidHashSize

Invalid hash size in part_set_header

NoTimestamp

No timestamp in vote or block header

InvalidTimestamp

Invalid timestamp

InvalidAccountIdLength

Invalid account ID length

InvalidSignatureIdLength

Invalid signature ID length

IntegerOverflow

Overflow during conversion

NoVoteFound

No Vote found during conversion

NoProposalFound

No Proposal found during conversion

InvalidAppHashLength

Invalid AppHash length found during conversion

InvalidPartSetHeader

Invalid PartSetHeader

MissingHeader

Missing Header in Block

MissingData

Missing Data in Block

MissingEvidence

Missing Evidence in Block

MissingTimestamp

Missing Timestamp in Block

InvalidBlock

Invalid Block

InvalidFirstBlock

Invalid first Block

MissingVersion

Missing Version field

InvalidHeader

Invalid Header

InvalidFirstHeader

Invalid first Header

InvalidSignature

Invalid signature in CommitSig

InvalidValidatorAddress

Invalid validator address in CommitSig

InvalidSignedHeader

Invalid Signed Header

InvalidEvidence

Invalid Evidence

BlockIdFlag

Invalid BlockIdFlag

NegativePower

Negative voting power

RawVotingPowerMismatch

Mismatch between raw voting power and computed one in validator set

Show fields

Fields of RawVotingPowerMismatch

raw: Power

raw voting power

computed: Power

computed voting power

MissingPublicKey

Missing Public Key

InvalidValidatorParams

Invalid validator parameters

InvalidVersionParams

Invalid version parameters

NegativeMaxAgeNum

Negative max_age_num_blocks in Evidence parameters

MissingMaxAgeDuration

Missing max_age_duration in evidence parameters

ProposerNotFound(Id)

Proposer not found in validator set

Implementations

Add additional context.

Trait Implementations

Returns a copy of the value. Read more

Performs copy-assignment from source. Read more

Formats the value using the given formatter. Read more

Formats the value using the given formatter. Read more

The lower-level source of this error, if any. Read more

🔬 This is a nightly-only experimental API. (backtrace)

Returns a stack backtrace, if available, of where this error occurred. Read more

👎 Deprecated since 1.42.0:

use the Display impl or to_string()

👎 Deprecated since 1.33.0:

replaced by Error::source, which can support downcasting

This method tests for self and other values to be equal, and is used by ==. Read more

This method tests for !=.

Auto Trait Implementations

Blanket Implementations

Gets the TypeId of self. Read more

Immutably borrows from an owned value. Read more

Mutably borrows from an owned value. Read more

Performs the conversion.

Performs the conversion.

Should always be Self

The resulting type after obtaining ownership.

Creates owned data from borrowed data, usually by cloning. Read more

🔬 This is a nightly-only experimental API. (toowned_clone_into)

recently added

Uses borrowed data to replace owned data, usually by cloning. Read more

Converts the given value to a String. Read more

The type returned in the event of a conversion error.

Performs the conversion.

The type returned in the event of a conversion error.

Performs the conversion.