#[repr(u32)]pub enum ErrorCode {
InvalidArgument = 1,
Failed = 2,
Storage = 3,
Busy = 6,
}Expand description
EngineError 的稳定数字码,供宿主和 C ABI 按数字分支,不必解析说明文字。编号与引擎库 C ABI 草案的返回码共用一个空间:0 是成功,4(不支持)、5(revision 不符)、7(会话已毒化)、8(空指针)留给 C ABI 自己的情形,引擎不产生它们。已发布的编号只追加、不改、不复用。
Variants§
InvalidArgument = 1
Failed = 2
Storage = 3
SQLite 或文件系统出错(EngineError::Sqlite、EngineError::Io)。
Busy = 6
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
Source§impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
Source§impl<Q, K> Equivalent<K> for Q
impl<Q, K> Equivalent<K> for Q
Source§impl<Q, K> Equivalent<K> for Q
impl<Q, K> Equivalent<K> for Q
Source§fn equivalent(&self, key: &K) -> bool
fn equivalent(&self, key: &K) -> bool
Compare self to
key and return true if they are equal.