Search before asking
Description
CXX's Result bridge converts Rust errors into rust::Error, which only carries a String message, so error code is lost as a separate entity.
Solution: introduce FFI intermediate struct and preserve the code.
Willingness to contribute