Replies: 1 comment
-
Turned out it's probably because negative auto traits are not implemented for dyn traits by default - https://stackoverflow.com/questions/76465714/making-a-negative-trait-in-rust-opposite-of-sized-unsized |
Beta Was this translation helpful? Give feedback.
0 replies
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
-
Hey!
I need to have a member with lifetime inside
pyclass
. As a workaround, I am usingstatic
lifetime:At the same time, the
Evm
struct does not implementSend
and may use tokio with multiple processes so I need to callpy.allow_threads
before working with it. SinceEvm
does not implementSend
, I switched to nightly rust whereUngil
is implemented through auto traits.However, the new
Ungil
implementation still does not allow me to passEvm
into the closure.A minimal example without actually involving
Chain
struct:This raises a lot of errors, one of them - https://pastebin.com/KN3PbZR2.
Any idea what is happening or what would be a good workaround?
Beta Was this translation helpful? Give feedback.
All reactions