pub enum ResultCode {
Show 107 variants
OK = 0,
ERROR = 1,
INTERNAL = 2,
PERM = 3,
ABORT = 4,
BUSY = 5,
LOCKED = 6,
NOMEM = 7,
READONLY = 8,
INTERRUPT = 9,
IOERR = 10,
CORRUPT = 11,
NOTFOUND = 12,
FULL = 13,
CANTOPEN = 14,
PROTOCOL = 15,
EMPTY = 16,
SCHEMA = 17,
TOOBIG = 18,
CONSTRAINT = 19,
MISMATCH = 20,
MISUSE = 21,
NOLFS = 22,
AUTH = 23,
FORMAT = 24,
RANGE = 25,
NOTADB = 26,
NOTICE = 27,
WARNING = 28,
ROW = 100,
DONE = 101,
ERROR_MISSING_COLLSEQ = 257,
ERROR_RETRY = 513,
ERROR_SNAPSHOT = 769,
IOERR_READ = 266,
IOERR_SHORT_READ = 522,
IOERR_WRITE = 778,
IOERR_FSYNC = 1_034,
IOERR_DIR_FSYNC = 1_290,
IOERR_TRUNCATE = 1_546,
IOERR_FSTAT = 1_802,
IOERR_UNLOCK = 2_058,
IOERR_RDLOCK = 2_314,
IOERR_DELETE = 2_570,
IOERR_BLOCKED = 2_826,
IOERR_NOMEM = 3_082,
IOERR_ACCESS = 3_338,
IOERR_CHECKRESERVEDLOCK = 3_594,
IOERR_LOCK = 3_850,
IOERR_CLOSE = 4_106,
IOERR_DIR_CLOSE = 4_362,
IOERR_SHMOPEN = 4_618,
IOERR_SHMSIZE = 4_874,
IOERR_SHMLOCK = 5_130,
IOERR_SHMMAP = 5_386,
IOERR_SEEK = 5_642,
IOERR_DELETE_NOENT = 5_898,
IOERR_MMAP = 6_154,
IOERR_GETTEMPPATH = 6_410,
IOERR_CONVPATH = 6_666,
IOERR_VNODE = 6_922,
IOERR_AUTH = 7_178,
IOERR_BEGIN_ATOMIC = 7_434,
IOERR_COMMIT_ATOMIC = 7_690,
IOERR_ROLLBACK_ATOMIC = 7_946,
IOERR_DATA = 8_202,
IOERR_CORRUPTFS = 8_458,
LOCKED_SHAREDCACHE = 262,
LOCKED_VTAB = 518,
BUSY_RECOVERY = 261,
BUSY_SNAPSHOT = 517,
BUSY_TIMEOUT = 773,
CANTOPEN_NOTEMPDIR = 270,
CANTOPEN_ISDIR = 526,
CANTOPEN_FULLPATH = 782,
CANTOPEN_CONVPATH = 1_038,
CANTOPEN_DIRTYWAL = 1_294,
CANTOPEN_SYMLINK = 1_550,
CORRUPT_VTAB = 267,
CORRUPT_SEQUENCE = 523,
CORRUPT_INDEX = 779,
READONLY_RECOVERY = 264,
READONLY_CANTLOCK = 520,
READONLY_ROLLBACK = 776,
READONLY_DBMOVED = 1_032,
READONLY_CANTINIT = 1_288,
READONLY_DIRECTORY = 1_544,
ABORT_ROLLBACK = 516,
CONSTRAINT_CHECK = 275,
CONSTRAINT_COMMITHOOK = 531,
CONSTRAINT_FOREIGNKEY = 787,
CONSTRAINT_FUNCTION = 1_043,
CONSTRAINT_NOTNULL = 1_299,
CONSTRAINT_PRIMARYKEY = 1_555,
CONSTRAINT_TRIGGER = 1_811,
CONSTRAINT_UNIQUE = 2_067,
CONSTRAINT_VTAB = 2_323,
CONSTRAINT_ROWID = 2_579,
CONSTRAINT_PINNED = 2_835,
CONSTRAINT_DATATYPE = 3_091,
NOTICE_RECOVER_WAL = 283,
NOTICE_RECOVER_ROLLBACK = 539,
WARNING_AUTOINDEX = 284,
AUTH_USER = 279,
OK_LOAD_PERMANENTLY = 256,
OK_SYMLINK = 512,
NULL = 5_000,
}Variants§
OK = 0
ERROR = 1
INTERNAL = 2
PERM = 3
ABORT = 4
BUSY = 5
LOCKED = 6
NOMEM = 7
READONLY = 8
INTERRUPT = 9
IOERR = 10
CORRUPT = 11
NOTFOUND = 12
FULL = 13
CANTOPEN = 14
PROTOCOL = 15
EMPTY = 16
SCHEMA = 17
TOOBIG = 18
CONSTRAINT = 19
MISMATCH = 20
MISUSE = 21
NOLFS = 22
AUTH = 23
FORMAT = 24
RANGE = 25
NOTADB = 26
NOTICE = 27
WARNING = 28
ROW = 100
DONE = 101
ERROR_MISSING_COLLSEQ = 257
ERROR_RETRY = 513
ERROR_SNAPSHOT = 769
IOERR_READ = 266
IOERR_SHORT_READ = 522
IOERR_WRITE = 778
IOERR_FSYNC = 1_034
IOERR_DIR_FSYNC = 1_290
IOERR_TRUNCATE = 1_546
IOERR_FSTAT = 1_802
IOERR_UNLOCK = 2_058
IOERR_RDLOCK = 2_314
IOERR_DELETE = 2_570
IOERR_BLOCKED = 2_826
IOERR_NOMEM = 3_082
IOERR_ACCESS = 3_338
IOERR_CHECKRESERVEDLOCK = 3_594
IOERR_LOCK = 3_850
IOERR_CLOSE = 4_106
IOERR_DIR_CLOSE = 4_362
IOERR_SHMOPEN = 4_618
IOERR_SHMSIZE = 4_874
IOERR_SHMLOCK = 5_130
IOERR_SHMMAP = 5_386
IOERR_SEEK = 5_642
IOERR_DELETE_NOENT = 5_898
IOERR_MMAP = 6_154
IOERR_GETTEMPPATH = 6_410
IOERR_CONVPATH = 6_666
IOERR_VNODE = 6_922
IOERR_AUTH = 7_178
IOERR_BEGIN_ATOMIC = 7_434
IOERR_COMMIT_ATOMIC = 7_690
IOERR_ROLLBACK_ATOMIC = 7_946
IOERR_DATA = 8_202
IOERR_CORRUPTFS = 8_458
LOCKED_SHAREDCACHE = 262
LOCKED_VTAB = 518
BUSY_RECOVERY = 261
BUSY_SNAPSHOT = 517
BUSY_TIMEOUT = 773
CANTOPEN_NOTEMPDIR = 270
CANTOPEN_ISDIR = 526
CANTOPEN_FULLPATH = 782
CANTOPEN_CONVPATH = 1_038
CANTOPEN_DIRTYWAL = 1_294
CANTOPEN_SYMLINK = 1_550
CORRUPT_VTAB = 267
CORRUPT_SEQUENCE = 523
CORRUPT_INDEX = 779
READONLY_RECOVERY = 264
READONLY_CANTLOCK = 520
READONLY_ROLLBACK = 776
READONLY_DBMOVED = 1_032
READONLY_CANTINIT = 1_288
READONLY_DIRECTORY = 1_544
ABORT_ROLLBACK = 516
CONSTRAINT_CHECK = 275
CONSTRAINT_COMMITHOOK = 531
CONSTRAINT_FOREIGNKEY = 787
CONSTRAINT_FUNCTION = 1_043
CONSTRAINT_NOTNULL = 1_299
CONSTRAINT_PRIMARYKEY = 1_555
CONSTRAINT_TRIGGER = 1_811
CONSTRAINT_UNIQUE = 2_067
CONSTRAINT_VTAB = 2_323
CONSTRAINT_ROWID = 2_579
CONSTRAINT_PINNED = 2_835
CONSTRAINT_DATATYPE = 3_091
NOTICE_RECOVER_WAL = 283
NOTICE_RECOVER_ROLLBACK = 539
WARNING_AUTOINDEX = 284
AUTH_USER = 279
OK_LOAD_PERMANENTLY = 256
OK_SYMLINK = 512
NULL = 5_000
Trait Implementations§
Source§impl Clone for ResultCode
impl Clone for ResultCode
Source§fn clone(&self) -> ResultCode
fn clone(&self) -> ResultCode
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 ResultCode
impl Debug for ResultCode
Source§impl Display for ResultCode
impl Display for ResultCode
Source§impl Error for ResultCode
impl Error for ResultCode
1.30.0 · Source§fn source(&self) -> Option<&(dyn Error + 'static)>
fn source(&self) -> Option<&(dyn Error + 'static)>
Returns the lower-level source of this error, if any. Read more
1.0.0 · Source§fn description(&self) -> &str
fn description(&self) -> &str
👎Deprecated since 1.42.0: use the Display impl or to_string()
Source§impl From<BorrowError> for ResultCode
impl From<BorrowError> for ResultCode
Source§fn from(_error: BorrowError) -> Self
fn from(_error: BorrowError) -> Self
Converts to this type from the input type.
Source§impl From<BorrowMutError> for ResultCode
impl From<BorrowMutError> for ResultCode
Source§fn from(_error: BorrowMutError) -> Self
fn from(_error: BorrowMutError) -> Self
Converts to this type from the input type.
Source§impl From<IntoStringError> for ResultCode
impl From<IntoStringError> for ResultCode
Source§fn from(_error: IntoStringError) -> Self
fn from(_error: IntoStringError) -> Self
Converts to this type from the input type.
Source§impl From<NulError> for ResultCode
impl From<NulError> for ResultCode
Source§impl From<String> for ResultCode
impl From<String> for ResultCode
Source§impl From<TryFromSliceError> for ResultCode
impl From<TryFromSliceError> for ResultCode
Source§fn from(_error: TryFromSliceError) -> Self
fn from(_error: TryFromSliceError) -> Self
Converts to this type from the input type.
Source§impl From<Utf8Error> for ResultCode
impl From<Utf8Error> for ResultCode
Source§impl FromPrimitive for ResultCode
impl FromPrimitive for ResultCode
Source§fn from_i64(n: i64) -> Option<Self>
fn from_i64(n: i64) -> Option<Self>
Converts an
i64 to return an optional value of this type. If the
value cannot be represented by this type, then None is returned.Source§fn from_u64(n: u64) -> Option<Self>
fn from_u64(n: u64) -> Option<Self>
Converts an
u64 to return an optional value of this type. If the
value cannot be represented by this type, then None is returned.Source§fn from_isize(n: isize) -> Option<Self>
fn from_isize(n: isize) -> Option<Self>
Converts an
isize to return an optional value of this type. If the
value cannot be represented by this type, then None is returned.Source§fn from_i8(n: i8) -> Option<Self>
fn from_i8(n: i8) -> Option<Self>
Converts an
i8 to return an optional value of this type. If the
value cannot be represented by this type, then None is returned.Source§fn from_i16(n: i16) -> Option<Self>
fn from_i16(n: i16) -> Option<Self>
Converts an
i16 to return an optional value of this type. If the
value cannot be represented by this type, then None is returned.Source§fn from_i32(n: i32) -> Option<Self>
fn from_i32(n: i32) -> Option<Self>
Converts an
i32 to return an optional value of this type. If the
value cannot be represented by this type, then None is returned.Source§fn from_i128(n: i128) -> Option<Self>
fn from_i128(n: i128) -> Option<Self>
Converts an
i128 to return an optional value of this type. If the
value cannot be represented by this type, then None is returned. Read moreSource§fn from_usize(n: usize) -> Option<Self>
fn from_usize(n: usize) -> Option<Self>
Converts a
usize to return an optional value of this type. If the
value cannot be represented by this type, then None is returned.Source§fn from_u8(n: u8) -> Option<Self>
fn from_u8(n: u8) -> Option<Self>
Converts an
u8 to return an optional value of this type. If the
value cannot be represented by this type, then None is returned.Source§fn from_u16(n: u16) -> Option<Self>
fn from_u16(n: u16) -> Option<Self>
Converts an
u16 to return an optional value of this type. If the
value cannot be represented by this type, then None is returned.Source§fn from_u32(n: u32) -> Option<Self>
fn from_u32(n: u32) -> Option<Self>
Converts an
u32 to return an optional value of this type. If the
value cannot be represented by this type, then None is returned.Source§fn from_u128(n: u128) -> Option<Self>
fn from_u128(n: u128) -> Option<Self>
Converts an
u128 to return an optional value of this type. If the
value cannot be represented by this type, then None is returned. Read moreSource§impl PartialEq for ResultCode
impl PartialEq for ResultCode
impl Copy for ResultCode
impl StructuralPartialEq for ResultCode
Auto Trait Implementations§
impl Freeze for ResultCode
impl RefUnwindSafe for ResultCode
impl Send for ResultCode
impl Sync for ResultCode
impl Unpin for ResultCode
impl UnsafeUnpin for ResultCode
impl UnwindSafe for ResultCode
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