Enum libsqlite3_sys::ErrorCode
source · [−]#[non_exhaustive]
pub enum ErrorCode {
Show 24 variants
InternalMalfunction,
PermissionDenied,
OperationAborted,
DatabaseBusy,
DatabaseLocked,
OutOfMemory,
ReadOnly,
OperationInterrupted,
SystemIoFailure,
DatabaseCorrupt,
NotFound,
DiskFull,
CannotOpen,
FileLockingProtocolFailed,
SchemaChanged,
TooBig,
ConstraintViolation,
TypeMismatch,
ApiMisuse,
NoLargeFileSupport,
AuthorizationForStatementDenied,
ParameterOutOfRange,
NotADatabase,
Unknown,
}
Expand description
Error Codes
Variants (Non-exhaustive)
This enum is marked as non-exhaustive
InternalMalfunction
Internal logic error in SQLite
PermissionDenied
Access permission denied
OperationAborted
Callback routine requested an abort
DatabaseBusy
The database file is locked
DatabaseLocked
A table in the database is locked
OutOfMemory
A malloc() failed
ReadOnly
Attempt to write a readonly database
OperationInterrupted
Operation terminated by sqlite3_interrupt()
SystemIoFailure
Some kind of disk I/O error occurred
DatabaseCorrupt
The database disk image is malformed
NotFound
Unknown opcode in sqlite3_file_control()
DiskFull
Insertion failed because database is full
CannotOpen
Unable to open the database file
FileLockingProtocolFailed
Database lock protocol error
SchemaChanged
The database schema changed
TooBig
String or BLOB exceeds size limit
ConstraintViolation
Abort due to constraint violation
TypeMismatch
Data type mismatch
ApiMisuse
Library used incorrectly
NoLargeFileSupport
Uses OS features not supported on host
AuthorizationForStatementDenied
Authorization denied
ParameterOutOfRange
2nd parameter to sqlite3_bind out of range
NotADatabase
File opened that is not a database file
Unknown
SQL error or missing database
Trait Implementations
impl Copy for ErrorCode
impl Eq for ErrorCode
impl StructuralEq for ErrorCode
impl StructuralPartialEq for ErrorCode
Auto Trait Implementations
impl RefUnwindSafe for ErrorCode
impl Send for ErrorCode
impl Sync for ErrorCode
impl Unpin for ErrorCode
impl UnwindSafe for ErrorCode
Blanket Implementations
sourceimpl<T> BorrowMut<T> for T where
T: ?Sized,
impl<T> BorrowMut<T> for T where
T: ?Sized,
const: unstable · sourcefn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more
sourceimpl<T> ToOwned for T where
T: Clone,
impl<T> ToOwned for T where
T: Clone,
type Owned = T
type Owned = T
The resulting type after obtaining ownership.
sourcefn clone_into(&self, target: &mut T)
fn clone_into(&self, target: &mut T)
toowned_clone_into
)Uses borrowed data to replace owned data, usually by cloning. Read more