reth_node_builder::exex

Trait BoxedLaunchExEx

Source
pub trait BoxedLaunchExEx<Node: FullNodeComponents>: Send {
    // Required method
    fn launch(
        self: Box<Self>,
        ctx: ExExContext<Node>,
    ) -> BoxFuture<'static, Result<BoxExEx>>;
}
Expand description

A version of LaunchExEx that returns a boxed future. Makes the trait object-safe.

Required Methods§

Source

fn launch( self: Box<Self>, ctx: ExExContext<Node>, ) -> BoxFuture<'static, Result<BoxExEx>>

Launches the ExEx and returns a boxed future.

Implementors§

Source§

impl<E, Node> BoxedLaunchExEx<Node> for E
where E: LaunchExEx<Node> + Send + 'static, Node: FullNodeComponents,

Implements BoxedLaunchExEx for any LaunchExEx that is Send and 'static.

Returns a [BoxFuture] that resolves to a BoxExEx.