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

Incompatible with async_trait? #645

Open
Palmik opened this issue Oct 10, 2021 · 0 comments
Open

Incompatible with async_trait? #645

Palmik opened this issue Oct 10, 2021 · 0 comments

Comments

@Palmik
Copy link

Palmik commented Oct 10, 2021

Hi, this is a great library.

It seems that currently it's not possible to register methods from async_traits due to the 'static requirements of RpcMethod.

Why does the lifetime of the future need to be 'static? Could not it be just the lifetime of the MetaIoHandler?

@Palmik Palmik changed the title Incomplatible with async_trait? Incompatible with async_trait? Oct 10, 2021
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

1 participant