Ancestors

Toot

Written by Jeff Martin on 2025-01-13 at 23:46

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

Descendants

Written by Jeff Martin on 2025-01-14 at 21:20

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

Proxy Information
Original URL
gemini://mastogem.picasoft.net/thread/113823712628311857
Status Code
Success (20)
Meta
text/gemini
Capsule Response Time
256.52656 milliseconds
Gemini-to-HTML Time
0.414873 milliseconds

This content has been proxied by September (3851b).