-
Notifications
You must be signed in to change notification settings - Fork 125
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
Async borrowing (continuation of #449) #450
Commits on Aug 28, 2020
-
WIP: "closure implements
Fn
, so references to captured variables ca……n't escape the closure"
Configuration menu - View commit details
-
Copy full SHA for 94fa599 - Browse repository at this point
Copy the full SHA 94fa599View commit details -
to_async_borrowing: pass state by a mutable ref
This change is important for two reasons. First, it allows the async handler to take the body (or other data) from State. Second, a mutable reference, unlike a shared one, can be Send without State being Sync (which it is not).
Configuration menu - View commit details
-
Copy full SHA for 8bb7dac - Browse repository at this point
Copy the full SHA 8bb7dacView commit details -
Configuration menu - View commit details
-
Copy full SHA for a36cd23 - Browse repository at this point
Copy the full SHA a36cd23View commit details -
Configuration menu - View commit details
-
Copy full SHA for 7dafd8f - Browse repository at this point
Copy the full SHA 7dafd8fView commit details -
AsyncHandlerFn: drop unneeded bounds
These are required on the handler factory (NewHandler impl), but not on the handler itself.
Configuration menu - View commit details
-
Copy full SHA for dc6e030 - Browse repository at this point
Copy the full SHA dc6e030View commit details -
Configuration menu - View commit details
-
Copy full SHA for 335cde5 - Browse repository at this point
Copy the full SHA 335cde5View commit details -
Configuration menu - View commit details
-
Copy full SHA for 4a696fe - Browse repository at this point
Copy the full SHA 4a696feView commit details -
to_async_borrowing: make return type generic
The success path can return not only a response but also anything that implements IntoResponse.
Configuration menu - View commit details
-
Copy full SHA for 6657ecd - Browse repository at this point
Copy the full SHA 6657ecdView commit details -
to_async_borrowing: move out impl from definition
Split the impl into the new handler marker trait and the actual impl using it.
Configuration menu - View commit details
-
Copy full SHA for ea29f92 - Browse repository at this point
Copy the full SHA ea29f92View commit details -
Configuration menu - View commit details
-
Copy full SHA for 25af37c - Browse repository at this point
Copy the full SHA 25af37cView commit details -
Configuration menu - View commit details
-
Copy full SHA for 5f6e044 - Browse repository at this point
Copy the full SHA 5f6e044View commit details -
Configuration menu - View commit details
-
Copy full SHA for ac424d9 - Browse repository at this point
Copy the full SHA ac424d9View commit details -
Configuration menu - View commit details
-
Copy full SHA for 73f4ed1 - Browse repository at this point
Copy the full SHA 73f4ed1View commit details
Commits on Sep 5, 2020
-
Configuration menu - View commit details
-
Copy full SHA for 9a08d71 - Browse repository at this point
Copy the full SHA 9a08d71View commit details -
Configuration menu - View commit details
-
Copy full SHA for f853599 - Browse repository at this point
Copy the full SHA f853599View commit details