Enum tendermint::block::commit_sig::CommitSig[][src]

pub enum CommitSig {
    BlockIdFlagAbsent,
    BlockIdFlagCommit {
        validator_address: Id,
        timestamp: Time,
        signature: Signature,
    },
    BlockIdFlagNil {
        validator_address: Id,
        timestamp: Time,
        signature: Signature,
    },
}
Expand description

CommitSig represents a signature of a validator. It’s a part of the Commit and can be used to reconstruct the vote set given the validator set.

Variants

BlockIdFlagAbsent

no vote was received from a validator.

BlockIdFlagCommit

voted for the Commit.BlockID.

Show fields

Fields of BlockIdFlagCommit

validator_address: Id

Validator address

timestamp: Time

Timestamp of vote

signature: Signature

Signature of vote

BlockIdFlagNil

voted for nil.

Show fields

Fields of BlockIdFlagNil

validator_address: Id

Validator address

timestamp: Time

Timestamp of vote

signature: Signature

Signature of vote

Implementations

Get the address of this validator if a vote was received.

Whether this signature is absent (no vote was received from validator)

Whether this signature is a commit (validator voted for the Commit.BlockId)

Whether this signature is nil (validator voted for nil)

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

Performs the conversion.

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

This method tests for !=.

The type returned in the event of a conversion error.

Performs the conversion.

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

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.