#[repr(i32)]pub enum FfiErrorCode {
Ok = 0,
NullPointer = 1,
BufferTooSmall = 2,
InvalidUtf8 = 3,
Serialization = 4,
Panic = 5,
Timeout = 6,
NotFound = 7,
LockPoisoned = 8,
Unknown = 99,
}Expand description
Numeric error codes that cross the FFI boundary.
Matches the FfiErrorCode enum in shared/ffi.h.
All values are stable — codes are never renumbered or removed.
Variants§
Ok = 0
NullPointer = 1
BufferTooSmall = 2
InvalidUtf8 = 3
Serialization = 4
Panic = 5
Timeout = 6
NotFound = 7
LockPoisoned = 8
Unknown = 99
Trait Implementations§
Source§impl Clone for FfiErrorCode
impl Clone for FfiErrorCode
Source§fn clone(&self) -> FfiErrorCode
fn clone(&self) -> FfiErrorCode
Returns a duplicate of the value. Read more
1.0.0 · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source. Read moreSource§impl Debug for FfiErrorCode
impl Debug for FfiErrorCode
Source§impl PartialEq for FfiErrorCode
impl PartialEq for FfiErrorCode
impl Copy for FfiErrorCode
impl Eq for FfiErrorCode
impl StructuralPartialEq for FfiErrorCode
Auto Trait Implementations§
impl Freeze for FfiErrorCode
impl RefUnwindSafe for FfiErrorCode
impl Send for FfiErrorCode
impl Sync for FfiErrorCode
impl Unpin for FfiErrorCode
impl UnsafeUnpin for FfiErrorCode
impl UnwindSafe for FfiErrorCode
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