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<'clone> Clone for Box<dyn Hardfork + 'clone>

§

fn clone(&self) -> Box<dyn Hardfork + 'clone>

Returns a copy of the value. Read more
1.0.0 · Source§

fn clone_from(&mut self, source: &Self)

Performs copy-assignment from source. Read more
§

impl<'clone> Clone for Box<dyn Hardfork + Send + 'clone>

§

fn clone(&self) -> Box<dyn Hardfork + Send + 'clone>

Returns a copy of the value. Read more
1.0.0 · Source§

fn clone_from(&mut self, source: &Self)

Performs copy-assignment from source. Read more
§

impl<'clone> Clone for Box<dyn Hardfork + Send + Sync + 'clone>

§

fn clone(&self) -> Box<dyn Hardfork + Send + Sync + 'clone>

Returns a copy of the value. Read more
1.0.0 · Source§

fn clone_from(&mut self, source: &Self)

Performs copy-assignment from source. Read more
§

impl<'clone> Clone for Box<dyn Hardfork + Sync + 'clone>

§

fn clone(&self) -> Box<dyn Hardfork + Sync + 'clone>

Returns a copy of the value. Read more
1.0.0 · Source§

fn clone_from(&mut self, source: &Self)

Performs copy-assignment from source. Read more
§

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§