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
Is it possible for handler functions to accept generics? I'm getting
rustc: the trait bound `poem::web::Data<Arc<std::sync::Mutex<Ctx<A>>>>:FromRequest<'_>` is not satisfied
the trait `FromRequest<'_>` is implemented for `poem::web::Data<&_>`
for that trait implementation, expected `&_`, found `Arc<std::sync::Mutex<Ctx<A>>>` [E0277]
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
-
Is it possible for handler functions to accept generics? I'm getting
for this code:
Beta Was this translation helpful? Give feedback.
All reactions