reth_primitives

Trait Hardfork

pub trait Hardfork:
    Any
    + DynClone
    + Send
    + Sync
    + 'static {
    // Required method
    fn name(&self) -> &'static str;
}
Expand description

Generic hardfork trait.

Required Methods§

fn name(&self) -> &'static str

Fork name.

Trait Implementations§

§

impl Debug for dyn Hardfork

§

fn fmt(&self, f: &mut Formatter<'_>) -> Result<(), Error>

Formats the value using the given formatter. Read more
§

impl Hash for dyn Hardfork

§

fn hash<H>(&self, state: &mut H)
where H: Hasher,

Feeds this value into the given Hasher. Read more
§

impl PartialEq for dyn Hardfork

§

fn eq(&self, other: &(dyn Hardfork + 'static)) -> bool

Tests for self and other values to be equal, and is used by ==.
1.0.0 · Source§

fn ne(&self, other: &Rhs) -> bool

Tests for !=. The default implementation is almost always sufficient, and should not be overridden without very good reason.
§

impl Eq for dyn Hardfork

Implementations on Foreign Types§

§

impl<'a, T> Hardfork for &'a T
where T: 'a + Hardfork + ?Sized, &'a T: Any + DynClone + Send + Sync + 'static,

§

fn name(&self) -> &'static str

§

impl<T> Hardfork for Box<T>
where T: Hardfork + ?Sized, Box<T>: Any + DynClone + Send + Sync + 'static,

§

fn name(&self) -> &'static str

Implementors§