Enum common_types::ids::BlockId[][src]

pub enum BlockId {
    Hash(H256),
    Number(BlockNumber),
    Earliest,
    Latest,
}

Uniquely identifies block.

Variants

Block's sha3. Querying by hash is always faster.

Block number within canon blockchain.

Earliest block (genesis).

Latest mined block.

Trait Implementations

impl Debug for BlockId
[src]

Formats the value using the given formatter. Read more

impl PartialEq for BlockId
[src]

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

This method tests for !=.

impl Copy for BlockId
[src]

impl Clone for BlockId
[src]

Returns a copy of the value. Read more

Performs copy-assignment from source. Read more

impl Hash for BlockId
[src]

Feeds this value into the given [Hasher]. Read more

Feeds a slice of this type into the given [Hasher]. Read more

impl Eq for BlockId
[src]

Auto Trait Implementations

impl Send for BlockId

impl Sync for BlockId