Skip to content

The trait bound is not satisfied. the following other types implement trait Handler<T, S> #2757

Answered by mladedav
vadxq asked this question in Q&A
Discussion options

You must be logged in to vote

So it was becuase you held let mut rng = rand::thread_rng(); across an await point, right? In that case you could also just drop(rng) after you generate the number and before the await. But using another generator is also valid.

Replies: 1 comment 3 replies

Comment options

You must be logged in to vote
3 replies
@vadxq
Comment options

@mladedav
Comment options

Answer selected by vadxq
@vadxq
Comment options

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