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

Updated docs regarding constraints of Handler arguments #2451

Merged

Conversation

hydrogen602
Copy link
Contributor

Fixes: #2450

Fixed documentation regarding the trait bounds of arguments in functions that implement Handler. The existing docs don't mention Send or FromRequestParts. Both of these have been added.

Motivation

This fixes #2450 as the documentation no longer accurately described the trait bounds of arguments in functions that implement Handler. Now it does again.

Solution

Modified docs.

Feedback regarding the wording would be appreciated.

Copy link
Member

@davidpdrsn davidpdrsn left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Thanks!

@davidpdrsn davidpdrsn merged commit 6c276c3 into tokio-rs:main Dec 29, 2023
18 checks passed
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

Successfully merging this pull request may close these issues.

Improve the documentation in debugging_handler_type_errors.md regarding what implements Handler
2 participants