EstimatorBuilder

Trait EstimatorBuilder 

Source
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§

Source

type Estimator: Component

The estimator component type

Required Methods§

Source

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.

Implementors§