Module error
Generated from cargo doc --no-deps -p nemo-relay -p nemo-relay-adaptive -p nemo-relay-ffi.
Error handling for the FFI layer.
This module defines the NemoRelayStatus enum returned by every exported FFI function, along with thread-local storage for human-readable error messages. After any non-Ok return, the caller should invoke nemo_relay_last_error on the same thread to obtain a diagnostic string. The error message remains valid until the next FFI call on that thread clears it via clear_last_error.
Enums
- NemoRelayStatus: Status codes returned by all FFI functions.
Functions
- clear_last_error: Clear the thread-local last-error message.
- last_error_message: Retrieve the last error message set on this thread, if any.
- nemo_relay_last_error: Retrieve the last error message set on this thread, or null if no error has occurred since the last
clear_last_errorcall. - nemo_relay_set_last_error_message: Set the thread-local last-error message from foreign code.
- set_last_error: Store an error message in thread-local storage for later retrieval.
- status_from_error: Convert an
FlowErrorto anNemoRelayStatus, storing the error message in thread-local storage. - status_from_plugin_error: Convert a
PluginErrorto anNemoRelayStatus, storing the error message in thread-local storage.