Skip to content

Updated docs regarding constraints of Handler arguments#2451

Merged
davidpdrsn merged 1 commit intotokio-rs:mainfrom
hydrogen602:Handler-fn-docs-update-fix-#2450
Dec 29, 2023
Merged

Updated docs regarding constraints of Handler arguments#2451
davidpdrsn merged 1 commit intotokio-rs:mainfrom
hydrogen602:Handler-fn-docs-update-fix-#2450

Conversation

@hydrogen602
Copy link
Copy Markdown
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
Copy Markdown
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
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