reth_node_builder

Trait NodeAddOns

Source
pub trait NodeAddOns<N>: Send{
    type Handle: Send + Sync + Clone;

    // Required method
    fn launch_add_ons(
        self,
        ctx: AddOnsContext<'_, N>,
    ) -> impl Future<Output = Result<Self::Handle, Report>> + Send;
}
Expand description

Customizable node add-on types.

Required Associated Types§

Source

type Handle: Send + Sync + Clone

Handle to add-ons.

Required Methods§

Source

fn launch_add_ons( self, ctx: AddOnsContext<'_, N>, ) -> impl Future<Output = Result<Self::Handle, Report>> + Send

Configures and launches the add-ons.

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.

Implementations on Foreign Types§

Source§

impl<N> NodeAddOns<N> for ()

Source§

type Handle = ()

Source§

async fn launch_add_ons( self, _components: AddOnsContext<'_, N>, ) -> Result<<() as NodeAddOns<N>>::Handle, Report>

Implementors§

Source§

impl<N, EthApi, EV> NodeAddOns<N> for RpcAddOns<N, EthApi, EV>
where N: FullNodeComponents<Types: ProviderNodeTypes, PayloadBuilder: PayloadBuilder<PayloadType = <N::Types as NodeTypesWithEngine>::Engine>>, EthApi: EthApiTypes + FullEthApiServer + AddDevSigners + Unpin + 'static, EV: EngineValidatorBuilder<N>,

Source§

type Handle = RpcHandle<N, EthApi>