StrategyBuilder

Trait StrategyBuilder 

Source
pub trait StrategyBuilder<State>: Send {
    type Strategy: Component;

    // Required method
    fn build_strategy(
        self,
        ctx: &BuilderContext<State>,
    ) -> impl Future<Output = Result<Self::Strategy>> + Send;
}
Expand description

Builder for strategy components (MEV strategies like arbitrage, liquidation)

Required Associated Types§

Source

type Strategy: Component

The strategy component type

Required Methods§

Source

fn build_strategy( self, ctx: &BuilderContext<State>, ) -> impl Future<Output = Result<Self::Strategy>> + Send

Build the strategy component

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§