#[non_exhaustive]#[repr(u32)]pub enum ErrorCode {
Show 16 variants
UNKNOWN = 1,
NULL_POINTER = 2,
INVALID_UTF8 = 3,
WRONG_TYPE = 10,
VALUE_NOT_FOUND = 11,
INSUFFICIENT_BUFFER = 12,
UNKNOWN_PROVIDER = 13,
PLUGIN_LOAD_FAILED = 20,
PLUGIN_SYMBOL_ERROR = 21,
PLUGIN_INITIALIZATION_FAILED = 22,
PLUGIN_INTERFACE_VERSION_UNSUPPORTED = 23,
PLUGIN_NAME_COLLISION = 24,
PLUGIN_MISSING_INTERFACE = 25,
PLUGIN_INTERNAL_ERROR = 26,
UNSUPPORTED_ALGORITHM = 50,
PLUGIN_GENERIC = 27,
}Expand description
Canonical error codes returned across the Confium FFI surface.
These mirror confium_core::error::ErrorCode exactly — same names,
same numeric values — so a plugin’s status code is meaningful to the
loader without a translation layer. (The cross-crate link is not
resolvable here because confium-api does not depend on
confium-core.)
Never reorder or renumber existing variants: they are wire-stable. New variants may only be appended.
Variants (Non-exhaustive)§
This enum is marked as non-exhaustive
Non-exhaustive enums could have additional variants added in future. Therefore, when matching against variants of non-exhaustive enums, an extra wildcard arm must be added to account for any future variants.
UNKNOWN = 1
NULL_POINTER = 2
INVALID_UTF8 = 3
WRONG_TYPE = 10
VALUE_NOT_FOUND = 11
INSUFFICIENT_BUFFER = 12
UNKNOWN_PROVIDER = 13
PLUGIN_LOAD_FAILED = 20
PLUGIN_SYMBOL_ERROR = 21
PLUGIN_INITIALIZATION_FAILED = 22
PLUGIN_INTERFACE_VERSION_UNSUPPORTED = 23
PLUGIN_NAME_COLLISION = 24
PLUGIN_MISSING_INTERFACE = 25
PLUGIN_INTERNAL_ERROR = 26
UNSUPPORTED_ALGORITHM = 50
PLUGIN_GENERIC = 27
The plugin encountered an error that does not map to one of the
canonical codes. The plugin should still produce a useful
Display string for logging, but the loader has no typed
recovery path.
Implementations§
Trait Implementations§
impl Copy for ErrorCode
impl Eq for ErrorCode
impl StructuralPartialEq for ErrorCode
Auto Trait Implementations§
impl Freeze for ErrorCode
impl RefUnwindSafe for ErrorCode
impl Send for ErrorCode
impl Sync for ErrorCode
impl Unpin for ErrorCode
impl UnsafeUnpin for ErrorCode
impl UnwindSafe for ErrorCode
Blanket Implementations§
Source§impl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
Source§fn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more