reth::builder::exex

Trait BoxedLaunchExEx

source
pub trait BoxedLaunchExEx<Node>: Send
where Node: FullNodeComponents,
{ // Required method fn launch( self: Box<Self>, ctx: ExExContext<Node>, ) -> Pin<Box<dyn Future<Output = Result<Pin<Box<dyn Future<Output = Result<(), Report>> + Send>>, Report>> + Send>>; }
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>, ) -> Pin<Box<dyn Future<Output = Result<Pin<Box<dyn Future<Output = Result<(), Report>> + Send>>, Report>> + Send>>

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.