Skip to content

Cannot access State in a FromRequestParts implementation #2763

Closed Answered by jplatte
evgenykobz asked this question in Q&A
Discussion options

You must be logged in to vote

Could it be that you're using #[debug_handler] on your handler function without specifying the state type? It will only be inferred if you use the State extractor.

Replies: 2 comments 1 reply

Comment options

You must be logged in to vote
0 replies
Comment options

You must be logged in to vote
1 reply
@evgenykobz
Comment options

Answer selected by evgenykobz
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Category
Q&A
Labels
None yet
2 participants