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 AT or GAT? #1072

Open
Dengjianping opened this issue Apr 9, 2023 · 1 comment
Open

Support AT or GAT? #1072

Dengjianping opened this issue Apr 9, 2023 · 1 comment

Comments

@Dengjianping
Copy link
Contributor

The compiler reports this error when I add a GAT.

error: Only methods allowed in RPC traits
  --> src/rpc/mod.rs:12:5
   |
12 |     type Item<'a> where Self: 'a;

Not sure there's a plan to support it.

@niklasad1
Copy link
Member

It's not supported yet, as the compiler says currently it's only allowed to add functions to the RPC trait i.e, not associated types.

Can you give an example what your trying to do and what's the benefit for jsonrpsee to support it? Thanks

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

No branches or pull requests

2 participants