pub trait EstimatorBuilder<State>: Send {
type Estimator: Component;
// Required method
fn build_estimator(
self,
ctx: &BuilderContext<State>,
) -> impl Future<Output = Result<Self::Estimator>> + Send;
}Expand description
Builder for estimator components (gas, profit estimation)
Required Associated Types§
Required Methods§
Sourcefn build_estimator(
self,
ctx: &BuilderContext<State>,
) -> impl Future<Output = Result<Self::Estimator>> + Send
fn build_estimator( self, ctx: &BuilderContext<State>, ) -> impl Future<Output = Result<Self::Estimator>> + Send
Build the estimator 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.