Toot

Written by Peter Bindels on 2024-02-28 at 08:06

How does Rust prevent long-running "pointers" from becoming dangling? For example, passing in the instance of some service to something trying to communicate with it; how does it prevent that instance from being destructed & deallocated before that client stops using it?

I tried searching but find only 1200 tutorials on the borrow checker; which IMO cannot do this long-term lifetime check.

=> More informations about this toot | View the thread | More toots from dascandy42@mastodon.social

Mentions

Tags

Proxy Information
Original URL
gemini://mastogem.picasoft.net/toot/112008073575218914
Status Code
Success (20)
Meta
text/gemini
Capsule Response Time
225.860807 milliseconds
Gemini-to-HTML Time
0.313754 milliseconds

This content has been proxied by September (ba2dc).