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

feat(client): expose hyper::client::connect::Connect trait alias #2073

Merged
merged 1 commit into from
Dec 12, 2019

Conversation

seanmonstar
Copy link
Member

This is just a "trait alias". It is automatically implemented for all
Service<Uri>s that have the required bounds. It's purpose being public
is to ease setting trait bounds outside of hyper. Therefore, it doesn't
have any exposed associated types, to prevent otherwise relying on any
super-traits that hyper requires.

This is *just* a "trait alias". It is automatically implemented for all
`Service<Uri>`s that have the required bounds. It's purpose being public
is to ease setting trait bounds outside of hyper. Therefore, it doesn't
have any exposed associated types, to prevent otherwise relying on any
super-traits that hyper requires.
@LucioFranco
Copy link
Member

I wonder if it makes sense to work off of MakeConnection, I think this might make it a bit easier to support things accross the tower ecosystem? Though this should be fine for now since hyper is the main tower client (maybe only) right now. But I know I ran into this issue with tonic, ill have to use this trait or enumerate the entire trait bounds.

Copy link

@dekellum dekellum left a comment

Choose a reason for hiding this comment

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

This is helpful, thanks!

@seanmonstar
Copy link
Member Author

I wonder if it makes sense to work off of MakeConnection, I think this might make it a bit easier to support things accross the tower ecosystem?

I don't think that will do what this does: allow someone to add the bounds without depending on the extra bounds.

@seanmonstar seanmonstar merged commit 2553ea1 into master Dec 12, 2019
@seanmonstar seanmonstar deleted the expose-connect-alias branch December 12, 2019 19:58
@LucioFranco
Copy link
Member

Also my worry about things accross the ecosystem isn't an issue if we lift the other trait alias.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants