Skip to main content

ServicePoolBuilderExt

Trait ServicePoolBuilderExt 

Source
pub trait ServicePoolBuilderExt<L> {
    // Required method
    fn pooled<T, Req>(
        self,
        count: usize,
        target: T,
    ) -> ServiceBuilder<Stack<Layer<T, Req>, L>>;
}

Required Methods§

Source

fn pooled<T, Req>( self, count: usize, target: T, ) -> ServiceBuilder<Stack<Layer<T, Req>, L>>

Wraps the make service to create a pool with count many services.

Dyn Compatibility§

This trait is not dyn compatible.

In older versions of Rust, dyn compatibility was called "object safety".

Implementors§