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§
Sourcetype Pool: PoolBuilder<State>
type Pool: PoolBuilder<State>
Pool component builder
Sourcetype Network: NetworkBuilder<State>
type Network: NetworkBuilder<State>
Network component builder
Sourcetype Executor: ExecutorBuilder<State>
type Executor: ExecutorBuilder<State>
Executor component builder
Sourcetype Strategy: StrategyBuilder<State>
type Strategy: StrategyBuilder<State>
Strategy component builder
Required Methods§
Sourcefn pool_builder(&self) -> Self::Pool
fn pool_builder(&self) -> Self::Pool
Get the pool builder
Sourcefn network_builder(&self) -> Self::Network
fn network_builder(&self) -> Self::Network
Get the network builder
Sourcefn executor_builder(&self) -> Self::Executor
fn executor_builder(&self) -> Self::Executor
Get the executor builder
Sourcefn strategy_builder(&self) -> Self::Strategy
fn strategy_builder(&self) -> Self::Strategy
Get the strategy builder