[−][src]Struct ethereum_forkid::ForkId
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]
pub fn decode(rlp: &Rlp<'_>) -> Result<Self, DecoderError>
[src]
impl Encodable for ForkId
[src]
impl Eq for ForkId
[src]
impl Hash for ForkId
[src]
pub fn hash<__H: Hasher>(&self, state: &mut __H)
[src]
pub fn hash_slice<H>(data: &[Self], state: &mut H) where
H: Hasher,
1.3.0[src]
H: Hasher,
impl PartialEq<ForkId> for ForkId
[src]
impl StructuralEq for ForkId
[src]
impl StructuralPartialEq for ForkId
[src]
Auto Trait Implementations
impl RefUnwindSafe for ForkId
[src]
impl Send for ForkId
[src]
impl Sync for ForkId
[src]
impl Unpin for ForkId
[src]
impl UnwindSafe for ForkId
[src]
Blanket Implementations
impl<T> Any for T where
T: 'static + ?Sized,
[src]
T: 'static + ?Sized,
impl<T> Borrow<T> for T where
T: ?Sized,
[src]
T: ?Sized,
impl<T> BorrowMut<T> for T where
T: ?Sized,
[src]
T: ?Sized,
pub fn borrow_mut(&mut self) -> &mut T
[src]
impl<T> From<T> for T
[src]
impl<T, U> Into<U> for T where
U: From<T>,
[src]
U: From<T>,
impl<T> ToOwned for T where
T: Clone,
[src]
T: Clone,
type Owned = T
The resulting type after obtaining ownership.
pub fn to_owned(&self) -> T
[src]
pub fn clone_into(&self, target: &mut T)
[src]
impl<T, U> TryFrom<U> for T where
U: Into<T>,
[src]
U: Into<T>,
type Error = Infallible
The type returned in the event of a conversion error.
pub fn try_from(value: U) -> Result<T, <T as TryFrom<U>>::Error>
[src]
impl<T, U> TryInto<U> for T where
U: TryFrom<T>,
[src]
U: TryFrom<T>,