reth_stages_api

Trait StageSet

Source
pub trait StageSet<Provider>: Sized {
    // Required method
    fn builder(self) -> StageSetBuilder<Provider>;

    // Provided method
    fn set<S: Stage<Provider> + 'static>(
        self,
        stage: S,
    ) -> StageSetBuilder<Provider> { ... }
}
Expand description

Combines multiple Stages 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§

Source

fn builder(self) -> StageSetBuilder<Provider>

Configures the stages in the set.

Provided Methods§

Source

fn set<S: Stage<Provider> + 'static>( self, stage: S, ) -> StageSetBuilder<Provider>

Overrides the given Stage, if it is in this set.

§Panics

Panics if the Stage is not in this set.

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§

Source§

impl<Provider> StageSet<Provider> for StageSetBuilder<Provider>