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