Trait StageSet
pub trait StageSet<Provider>: Sized {
// Required method
fn builder(self) -> StageSetBuilder<Provider>;
// Provided method
fn set<S>(self, stage: S) -> StageSetBuilder<Provider>
where S: Stage<Provider> + 'static { ... }
}
Expand description
Combines multiple Stage
s into a single unit.
A StageSet
is a logical chunk of stages that depend on each other. It is up to the
individual stage sets to determine what kind of configuration they expose.
Individual stages in the set can be added, removed and overridden using StageSetBuilder
.
Required Methods§
fn builder(self) -> StageSetBuilder<Provider>
fn builder(self) -> StageSetBuilder<Provider>
Configures the stages in the set.
Provided Methods§
Dyn Compatibility§
This trait is not dyn compatible.
In older versions of Rust, dyn compatibility was called "object safety", so this trait is not object safe.
Implementors§
impl<E, Provider> StageSet<Provider> for ExecutionStages<E>where
E: BlockExecutorProvider,
SenderRecoveryStage: Stage<Provider>,
ExecutionStage<E>: Stage<Provider>,
impl<E, Provider> StageSet<Provider> for OfflineStages<E>where
E: BlockExecutorProvider,
ExecutionStages<E>: StageSet<Provider>,
PruneSenderRecoveryStage: Stage<Provider>,
HashingStages: StageSet<Provider>,
HistoryIndexingStages: StageSet<Provider>,
PruneStage: Stage<Provider>,
impl<P, H, B, E, Provider> StageSet<Provider> for DefaultStages<P, H, B, E>where
P: HeaderSyncGapProvider + 'static,
H: HeaderDownloader + 'static,
B: BodyDownloader + 'static,
E: BlockExecutorProvider,
OnlineStages<P, H, B>: StageSet<Provider>,
OfflineStages<E>: StageSet<Provider>,
impl<Provider> StageSet<Provider> for HashingStageswhere
MerkleStage: Stage<Provider>,
AccountHashingStage: Stage<Provider>,
StorageHashingStage: Stage<Provider>,
impl<Provider> StageSet<Provider> for HistoryIndexingStageswhere
TransactionLookupStage: Stage<Provider>,
IndexStorageHistoryStage: Stage<Provider>,
IndexAccountHistoryStage: Stage<Provider>,
impl<Provider> StageSet<Provider> for StageSetBuilder<Provider>
impl<Provider> StageSet<Provider> for TestStages
Available on crate feature
test-utils
only.