Info
This post is auto-generated from RSS feed The Rust Programming Language Forum - Latest topics. Source: Handle stop from C/FFI
Hi all! I'm using bindgen to generate some C bindings, for now is all fine, except for one thing.
Some C functions stops the program, do not crash but stop with different status code, and this makes Rust crazy!
I'm writting a safe interface for a postgres extensions, so when there is a stop because there is an error, does not means something went bad, is just like a Result... but being unhandled by Rust...
How can catch when a C binding function stops?
9 posts - 4 participants
🏷️ rust_feed