You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
Repository navigation
How to get the returned middleware of middleware::from_fn(...)?
#67
reacted with thumbs up emoji reacted with thumbs down emoji reacted with laugh emoji reacted with hooray emoji reacted with confused emoji reacted with heart emoji reacted with rocket emoji reacted with eyes emoji
Uh oh!
There was an error while loading. Please reload this page.
I'm writing a lib to provide some general middlewares.
I wrote a middleware function like this:
Others can use this by
However it's inconvenience to import
actix_web_labin all other crates.So I want to write something like:
I hope others can use returned things directly like:
error_handler_wrappergot some compile errors and I cannot find ways to solve it.All reactions