Type Alias BoxedMakeService

Source
pub type BoxedMakeService<S, E> = Box<dyn MakeService<Service = S, Error = E> + Send + Sync + 'static>;
Expand description

A boxed trait object of MakeService that enables type erasure for service factories.

BoxedMakeService<S, E> allows different implementations of MakeService to be treated uniformly, as long as they produce the same Service type S and Error type E. This type is particularly useful when designing systems with pluggable or configurable service factories, where the exact implementation of the factory may vary or be determined at runtime.

Aliased Typeยง

pub struct BoxedMakeService<S, E>(/* private fields */);