Replies: 2 comments 1 reply
-
This is a documentation bug. We used to store the state inside of an |
Beta Was this translation helpful? Give feedback.
0 replies
-
Ah, ta. |
Beta Was this translation helpful? Give feedback.
1 reply
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
-
Summary
The docs for State specify that a top level state may be
!Clone
if handlers never try to extract the state itself, and only use the inner values of the state by implementingFromRef<OuterState> for InnerState
However with_state takes an
S: Clone
.So how do you actually insert a state which is
!Clone
into a router when you intend to only extract the inner states?axum version
0.7.5
Beta Was this translation helpful? Give feedback.
All reactions