#[non_exhaustive]pub enum Hardfork {
Frontier,
Homestead,
Byzantium,
London,
Shanghai,
Cancun,
Prague,
Amsterdam,
}Expand description
Execution-layer hardfork identity used by explicit chain specs.
Variants (Non-exhaustive)§
This enum is marked as non-exhaustive
Non-exhaustive enums could have additional variants added in future. Therefore, when matching against variants of non-exhaustive enums, an extra wildcard arm must be added to account for any future variants.
Frontier
Frontier genesis rules.
Homestead
Homestead rules.
Byzantium
Byzantium rules.
London
London rules.
Shanghai
Shanghai rules.
Cancun
Cancun rules.
Prague
Prague/Pectra rules.
Amsterdam
Amsterdam rules.
Trait Implementations§
impl Copy for Hardfork
impl Eq for Hardfork
Source§impl Ord for Hardfork
impl Ord for Hardfork
1.21.0 (const: unstable) · Source§fn max(self, other: Self) -> Selfwhere
Self: Sized,
fn max(self, other: Self) -> Selfwhere
Self: Sized,
Compares and returns the maximum of two values. Read more
Source§impl PartialOrd for Hardfork
impl PartialOrd for Hardfork
impl StructuralPartialEq for Hardfork
Auto Trait Implementations§
impl Freeze for Hardfork
impl RefUnwindSafe for Hardfork
impl Send for Hardfork
impl Sync for Hardfork
impl Unpin for Hardfork
impl UnsafeUnpin for Hardfork
impl UnwindSafe for Hardfork
Blanket Implementations§
Source§impl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
Source§fn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more