NodeComponentsBuilder

Trait NodeComponentsBuilder 

Source
pub trait NodeComponentsBuilder<State>: Send {
    type Pool: PoolBuilder<State>;
    type Network: NetworkBuilder<State>;
    type Executor: ExecutorBuilder<State>;
    type Strategy: StrategyBuilder<State>;

    // Required methods
    fn pool_builder(&self) -> Self::Pool;
    fn network_builder(&self) -> Self::Network;
    fn executor_builder(&self) -> Self::Executor;
    fn strategy_builder(&self) -> Self::Strategy;
}
Expand description

Combined builder trait for basic node components (for simpler nodes)

Required Associated Types§

Source

type Pool: PoolBuilder<State>

Pool component builder

Source

type Network: NetworkBuilder<State>

Network component builder

Source

type Executor: ExecutorBuilder<State>

Executor component builder

Source

type Strategy: StrategyBuilder<State>

Strategy component builder

Required Methods§

Source

fn pool_builder(&self) -> Self::Pool

Get the pool builder

Source

fn network_builder(&self) -> Self::Network

Get the network builder

Source

fn executor_builder(&self) -> Self::Executor

Get the executor builder

Source

fn strategy_builder(&self) -> Self::Strategy

Get the strategy builder

Implementors§