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

pub enum Kind {
    Crypto,
    InvalidKey,
    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),
}

Kinds of errors

Variants

Crypto

Cryptographic operation failed

InvalidKey

Malformatted or otherwise invalid cryptographic key

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

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

impl Kind[src]

pub fn context(self, source: impl Into<BoxError>) -> Context<Kind>[src]

Add additional context.

Trait Implementations

impl Clone for Kind[src]

impl Debug for Kind[src]

impl Display for Kind[src]

impl Eq for Kind[src]

impl Error for Kind[src]

impl PartialEq<Kind> for Kind[src]

impl StructuralEq for Kind[src]

impl StructuralPartialEq for Kind[src]

Auto Trait Implementations

impl RefUnwindSafe for Kind

impl Send for Kind

impl Sync for Kind

impl Unpin for Kind

impl UnwindSafe for Kind

Blanket Implementations

impl<T> Any for T where
    T: 'static + ?Sized
[src]

impl<T> Borrow<T> for T where
    T: ?Sized
[src]

impl<T> BorrowMut<T> for T where
    T: ?Sized
[src]

impl<T> Conv for T

impl<T> FmtForward for T

impl<T> From<T> for T[src]

impl<T, U> Into<U> for T where
    U: From<T>, 
[src]

impl<T> Pipe for T

impl<T> PipeAsRef for T

impl<T> PipeBorrow for T

impl<T> PipeDeref for T

impl<T> PipeRef for T

impl<T> Same<T> for T

type Output = T

Should always be Self

impl<T> Tap for T

impl<T, U> TapAsRef<U> for T where
    U: ?Sized

impl<T, U> TapBorrow<U> for T where
    U: ?Sized

impl<T> TapDeref for T

impl<T> ToOwned for T where
    T: Clone
[src]

type Owned = T

The resulting type after obtaining ownership.

impl<T> ToString for T where
    T: Display + ?Sized
[src]

impl<T> TryConv for T

impl<T, U> TryFrom<U> for T where
    U: Into<T>, 
[src]

type Error = Infallible

The type returned in the event of a conversion error.

impl<T, U> TryInto<U> for T where
    U: TryFrom<T>, 
[src]

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

The type returned in the event of a conversion error.

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