You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
It would be great to include some pointers on how to handle errors in a clean way. When a Rust function returns Result<T, E>, what's a good way of communicating that across the FFI boundary?
The text was updated successfully, but these errors were encountered:
I asked how this could be done on Reddit and I was pointed to the getsentry/symbolic repository as a source of inspiration. I summarized their approach in this comment (hopefully I didn't get it too wrong).
I like the way they do it, it seems clean and natural, but then again it's the first approach I've seen (prior to this, I had no idea at all how to do error handling across the FFI boundary), so it's not like I have a very refined taste in this respect :)
It would be great to include some pointers on how to handle errors in a clean way. When a Rust function returns
Result<T, E>
, what's a good way of communicating that across the FFI boundary?The text was updated successfully, but these errors were encountered: