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