MarketBuilder

Trait MarketBuilder 

Source
pub trait MarketBuilder<State>: Send {
    type Market: Component;

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

Builder for market data components (pools, tokens, prices)

Required Associated Types§

Source

type Market: Component

The market component type

Required Methods§

Source

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

Build the market 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§