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
Uh oh!
There was an error while loading. Please reload this page.
-
Hey!
I need to have a member with lifetime inside
pyclass. As a workaround, I am usingstaticlifetime:At the same time, the
Evmstruct does not implementSendand may use tokio with multiple processes so I need to callpy.allow_threadsbefore working with it. SinceEvmdoes not implementSend, I switched to nightly rust whereUngilis implemented through auto traits.However, the new
Ungilimplementation still does not allow me to passEvminto the closure.A minimal example without actually involving
Chainstruct: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