Skip to main content

Module error

Module error 

Source

Enums§

RustealError
Rich error type for Rusteal operations.

Functions§

check_ffi
Convert an FFI error code to a RustealResult<()>. Ok maps to Ok(()), all others map to the corresponding RustealError.
check_ffi_ctx
Like check_ffi, but enriches property/function errors with the given name.
ffi_infallible
Assert that an FFI call returned Ok. Used for codegen-generated methods where handle validation has already been performed and the C++ wrapper is expected to always succeed. Panics in debug builds if the code is not Ok.
ffi_infallible_ctx
Like ffi_infallible, but includes a context string in the panic message.

Type Aliases§

RustealResult
Convenience alias used throughout the runtime and generated code.