8000 chore: add Send+Sync to returned Boxed errors by m4tx · Pull Request #1353 · juhaku/utoipa · GitHub
[go: up one dir, main page]
More Web Proxy on the site http://driver.im/
Skip to content

chore: add Send+Sync to returned Boxed errors #1353

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

Open
wants to merge 1 commit into
base: master
Choose a base branch
from

Conversation

m4tx
8000
Copy link
@m4tx m4tx commented Mar 28, 2025

The errors possible to return by serve() seem to be implementing Send+Sync, so this just adds these auto traits to the function signature. This is useful for passing the errors around in web applications for instance to display it to a user eventually in HTTP response, or to wrap it inside anyhow::Error (which requires the inner objects to be Send+Sync).

The errors possible to return by `serve()` seem to be implementing
Send+Sync, so this just adds these auto traits to the function
signature. This is useful for passing the errors around in
web applications for instance to display it to a user eventually in HTTP
response, or to wrap it inside anyhow::Error (which requires the inner
objects to be Send+Sync).
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.

1 participant
0