1 2 3 4 5 6 7 8 9
//! Create a new tower Service instance. use tower::Service; /// Trait pub(crate) trait ServiceFactory<Request> { type Service: Service<Request>; fn create(&self) -> Self::Service; }