some questiones about the Service
implemention of Router
#1968
Answered
by
davidpdrsn
HunterGitHub
asked this question in
Q&A
-
for axum::Router,it implement the
but the
|
Beta Was this translation helpful? Give feedback.
Answered by
davidpdrsn
Apr 27, 2023
Replies: 1 comment 4 replies
-
That's not possible because we cannot struct a Response::new(???) Therefore the response body type must be type erased so we can combine multiple types that we can construct. |
Beta Was this translation helpful? Give feedback.
4 replies
Answer selected by
HunterGitHub
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
That's not possible because we cannot struct a
B
, so how would we make the response?Therefore the response body type must be type erased so we can combine multiple types that we can construct.