[][src]Struct types::fork::Fork

pub struct Fork {
    pub previous_version: [u8; 4],
    pub current_version: [u8; 4],
    pub epoch: Epoch,

Specifies a fork of the BeaconChain, to prevent replay attacks.

Spec v0.8.1


previous_version: [u8; 4]current_version: [u8; 4]epoch: Epoch


impl Fork[src]

pub fn get_fork_version(&self, epoch: Epoch) -> [u8; 4][src]

Return the fork version of the given epoch.

Spec v0.8.1

Trait Implementations

impl TestRandom for Fork[src]

impl Default for Fork[src]

impl Clone for Fork[src]

impl PartialEq<Fork> for Fork[src]

impl Debug for Fork[src]

impl TreeHash for Fork[src]

impl Serialize for Fork[src]

impl<'de> Deserialize<'de> for Fork[src]

impl Decode for Fork[src]

impl Encode for Fork[src]

Auto Trait Implementations

impl Send for Fork

impl Unpin for Fork

impl Sync for Fork

impl UnwindSafe for Fork

impl RefUnwindSafe for Fork

Blanket Implementations

impl<T> ToOwned for T where
    T: Clone

type Owned = T

The resulting type after obtaining ownership.

impl<T, U> Into<U> for T where
    U: From<T>, 

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

impl<T, U> TryFrom<U> for T where
    U: Into<T>, 

type Error = Infallible

The type returned in the event of a conversion error.

impl<T, U> TryInto<U> for T where
    U: TryFrom<T>, 

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

The type returned in the event of a conversion error.

impl<T> BorrowMut<T> for T where
    T: ?Sized

impl<T> Borrow<T> for T where
    T: ?Sized

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

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

impl<T> DeserializeOwned for T where
    T: Deserialize<'de>, 

impl<T> Same<T> for T

type Output = T

Should always be Self

impl<T> SendSyncUnwindSafe for T where
    T: Send + Sync + UnwindSafe + ?Sized