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

Remove PayloadTypeDecodeError associated type #1

Closed
sgodwincs opened this issue Aug 10, 2019 · 1 comment
Closed

Remove PayloadTypeDecodeError associated type #1

sgodwincs opened this issue Aug 10, 2019 · 1 comment

Comments

@sgodwincs
Copy link
Owner

sgodwincs commented Aug 10, 2019

Ideally, PayloadType would be defined something like:

type PayloadType: TryFrom<u8, Error: Error + Into<HeaderDecodeError<Self>>>;

This can be done now with associated type bound, but it results in a lot of unnecessary where clauses, so this is blocked on implied bounds.

@sgodwincs
Copy link
Owner Author

Went a different route here and just moved into into a separate PayloadType trait .

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

No branches or pull requests

1 participant