pub trait FactoryLayer<C, F> {
    type Factory;

    // Required method
    fn layer(&self, config: &C, inner: F) -> Self::Factory;
}

Required Associated Types§

Required Methods§

source

fn layer(&self, config: &C, inner: F) -> Self::Factory

Implementations on Foreign Types§

source§

impl<C, F, T> FactoryLayer<C, F> for Option<T>
where T: FactoryLayer<C, F>,

§

type Factory = Either<<T as FactoryLayer<C, F>>::Factory, F>

source§

fn layer(&self, config: &C, inner: F) -> Self::Factory

Implementors§

source§

impl<C, F, FLA, FLB> FactoryLayer<C, F> for Either<FLA, FLB>
where FLA: FactoryLayer<C, F>, FLB: FactoryLayer<C, F>,

§

type Factory = Either<<FLA as FactoryLayer<C, F>>::Factory, <FLB as FactoryLayer<C, F>>::Factory>

source§

impl<C, F, FN, O> FactoryLayer<C, F> for LayerFn<C, FN>
where FN: Fn(&C, F) -> O,

§

type Factory = O