pub trait FactoryLayer<C, F> { type Factory; // Required method fn layer(&self, config: &C, inner: F) -> Self::Factory; }