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

[Feature] Add helper Provider for dyn Provider #1982

Open
mattsse opened this issue Jan 31, 2025 · 0 comments
Open

[Feature] Add helper Provider for dyn Provider #1982

mattsse opened this issue Jan 31, 2025 · 0 comments
Labels
enhancement New feature or request

Comments

@mattsse
Copy link
Member

mattsse commented Jan 31, 2025

Component

rpc

Describe the feature you would like

by installing fillers you get a FillProvider with a bunch of generics, this type is inconvenient to work with, especially because one usually doesn't care about any of this.

an easy workaround for this would be a reqwest::Client style wrapper:

struct P<N>(dyn Provider<N> + Unpin);

TODO

  • add wrapper struct
  • implement provider for it
  • add a function to Provider trait that converts that type into that wrapper

Additional context

No response

@mattsse mattsse added the enhancement New feature or request label Jan 31, 2025
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
enhancement New feature or request
Projects
None yet
Development

No branches or pull requests

1 participant