[][src]Struct ethereum_forkid::ForkId

pub struct ForkId {
    pub hash: ForkHash,
    pub next: BlockNumber,
}

A fork identifier as defined by EIP-2124. Serves as the chain compatibility identifier.

Fields

hash: ForkHash

CRC32 checksum of the all fork blocks from genesis.

next: BlockNumber

Next upcoming fork block number, 0 if not yet known.

Trait Implementations

impl Clone for ForkId[src]

impl Copy for ForkId[src]

impl Debug for ForkId[src]

impl Decodable for ForkId[src]

impl Encodable for ForkId[src]

impl Eq for ForkId[src]

impl Hash for ForkId[src]

impl PartialEq<ForkId> for ForkId[src]

impl StructuralEq for ForkId[src]

impl StructuralPartialEq for ForkId[src]

Auto Trait Implementations

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> From<T> for T[src]

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

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

type Owned = T

The resulting type after obtaining ownership.

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.