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

Support generics on the trait #257

Open
tikue opened this issue Aug 9, 2019 · 1 comment
Open

Support generics on the trait #257

tikue opened this issue Aug 9, 2019 · 1 comment
Assignees
Labels

Comments

@tikue
Copy link
Collaborator

tikue commented Aug 9, 2019

Technically non-'static requests are supported today, but it's difficult to reference them in a trait item if the trait isn't parameterized by the lifetime. More generally, it may be worth supporting type parameters on the declared traits.

@tikue tikue added the bug label Aug 9, 2019
@tikue tikue self-assigned this Aug 9, 2019
@tikue tikue changed the title Support lifetimes on the trait Support generics on the trait Aug 13, 2019
@tikue
Copy link
Collaborator Author

tikue commented Aug 13, 2019

I looked into this briefly, and it appears complex.

  • need to handle where clauses and trait bounds
  • need to figure out if type params apply to requests or responses.
    • if it applies to responses, it needs to apply to the response future as well.

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

No branches or pull requests

1 participant