Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

[RFC] Change Service associated Request type to a type parameter #1

Closed
wants to merge 4 commits into from

Conversation

hawkw
Copy link
Owner

@hawkw hawkw commented Oct 10, 2018

As described in tower-rs/tower#99, this tracks the prototype tower-rs change (hawkw/tower#1) that makes Service::Request into a type parameter, rather than an associated type.

This PR is not necessarily intended to be merged, but is opened to allow the changes to be discussed and reviewed more easily.

Signed-off-by: Eliza Weisman <eliza@buoyant.io>
Signed-off-by: Eliza Weisman <eliza@buoyant.io>
Signed-off-by: Eliza Weisman <eliza@buoyant.io>
@@ -367,9 +367,9 @@ impl<T, C, M> ServiceBuilder<T, C, M> {
where T: IntoResource<DefaultSerializer, ::run::LiftReqBody>,
C: IntoCatch<DefaultSerializer> + Send + 'static,
C::Catch: Send,
M: HttpMiddleware<RoutedService<T::Resource, C::Catch>, RequestBody = ::run::LiftReqBody> + Send + 'static,
M: HttpMiddleware<RoutedService<T::Resource, C::Catch>, ::run::LiftReqBody> + Send + 'static,

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Is it possible to hide ::run::LiftReqBody from the public API with a generic request body?

@hawkw
Copy link
Owner Author

hawkw commented Dec 6, 2018

Closing this as the change has already been made upstream.

@hawkw hawkw closed this Dec 6, 2018
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
2 participants