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§
Required Methods§
Sourcefn build_strategy(
self,
ctx: &BuilderContext<State>,
) -> impl Future<Output = Result<Self::Strategy>> + Send
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.