Ooof! implementing Async traits in #Rust #RustLang and having to work in Pin-land is a bit of a mind-bender. :blobcatwhat:
I think I'm starting to get the hang of it though.
The pin-project-lite crate is helpful tool there.
=> More informations about this toot | More toots from cuchaz@gladtech.social
Wow, implementing AsyncWrite on my type, due to annoying constraints, means I need to use self-referential structs.
I've always stayed away from those for good reason, but looks like I might not have a choice here? Async in Rust feels only half-baked at times. :blobcatgooglyshrug:
I'm going wild using stuff like unsafe and transmute() to change lifetimes.
Feels dirty.
My program hasn't segfaulted yet tho, so there's that. :blobcat_thisisfine:
=> More informations about this toot | More toots from cuchaz@gladtech.social This content has been proxied by September (3851b).Proxy Information
text/gemini