Trait CliNodeComponents

Source
pub trait CliNodeComponents<N: CliNodeTypes> {
    type Evm: ConfigureEvm<Primitives = N::Primitives> + 'static;
    type Consensus: FullConsensus<N::Primitives, Error = ConsensusError> + Clone + 'static;

    // Required methods
    fn evm_config(&self) -> &Self::Evm;
    fn consensus(&self) -> &Self::Consensus;
}
Expand description

Helper trait aggregating components required for the CLI.

Required Associated Types§

Source

type Evm: ConfigureEvm<Primitives = N::Primitives> + 'static

Evm to use.

Source

type Consensus: FullConsensus<N::Primitives, Error = ConsensusError> + Clone + 'static

Consensus implementation.

Required Methods§

Source

fn evm_config(&self) -> &Self::Evm

Returns the configured EVM.

Source

fn consensus(&self) -> &Self::Consensus

Returns the consensus implementation.

Implementations on Foreign Types§

Source§

impl<N: CliNodeTypes, E, C> CliNodeComponents<N> for (E, C)
where E: ConfigureEvm<Primitives = N::Primitives> + 'static, C: FullConsensus<N::Primitives, Error = ConsensusError> + Clone + 'static,

Source§

type Evm = E

Source§

type Consensus = C

Source§

fn evm_config(&self) -> &Self::Evm

Source§

fn consensus(&self) -> &Self::Consensus

Implementors§