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_lenparameter 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 viacatch_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
PluginErrorwith details. - STATUS_
SERIALIZATION_ ERROR - Serialization or deserialization failed at the FFI boundary. This indicates a bug in the generated shims or a type mismatch.