PoolBuilder

Trait PoolBuilder 

Source
pub trait PoolBuilder<State>: Send {
    type Pool: Component;

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

Builder for pool/mempool components

Required Associated Types§

Source

type Pool: Component

The pool component type

Required Methods§

Source

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

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