Skip to content

Trait bound error when attaching middleware with from_fn_with_state #2664

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

You must be logged in to vote

The problem is that inside my middleware I'm holding as !Send type across an await point. I figured this out by using the #[axum_macros::debug_handler] macro.

Replies: 1 comment

Comment options

You must be logged in to vote
0 replies
Answer selected by avsaase
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Category
Q&A
Labels
None yet
1 participant