Skip to main content

Module status

Module status 

Source
Expand description

FFI status codes returned by plugin method shims.

These i32 values are the return type of every extern "C" function in a plugin vtable. The host checks the status code before reading the output buffer.

Constantsยง

STATUS_BUFFER_TOO_SMALL
Output buffer was too small (CallerAllocated/Arena strategies only). The out_len parameter contains the required size. Retry with a larger buffer.
STATUS_OK
Method executed successfully. Output buffer contains the serialized result.
STATUS_PANIC
A panic was caught at the extern "C" boundary via catch_unwind. The output buffer may contain a panic message string, but this is not guaranteed.
STATUS_PLUGIN_ERROR
The plugin method returned an error. The output buffer contains a serialized PluginError with details.
STATUS_SERIALIZATION_ERROR
Serialization or deserialization failed at the FFI boundary. This indicates a bug in the generated shims or a type mismatch.