Enum DatabaseError
pub enum DatabaseError {
Show 13 variants
Open(DatabaseErrorInfo),
CreateTable(DatabaseErrorInfo),
Write(Box<DatabaseWriteError>),
Read(DatabaseErrorInfo),
Delete(DatabaseErrorInfo),
Commit(DatabaseErrorInfo),
InitTx(DatabaseErrorInfo),
InitCursor(DatabaseErrorInfo),
Decode,
Stats(DatabaseErrorInfo),
LogLevelUnavailable(LogLevel),
Other(String),
Custom(Arc<dyn Error + Sync + Send>),
}Expand description
Re-exports Database error type.
Failed to open the database.
Failed to create a table in the database.
Failed to write a value into a table.
Failed to read a value from a table.
Failed to delete a (key, value) pair from a table.
Failed to commit transaction changes into the database.
Failed to initialize a transaction.
Failed to initialize a cursor.
Failed to decode a key from a table.
Failed to get database stats.
Failed to use the specified log level, as it’s not available.
Other unspecified error.
Other unspecified error.
§
§
Causes self to use its Binary implementation when Debug-formatted.
§
Causes self to use its Display implementation when
Debug-formatted.
§
Causes self to use its LowerExp implementation when
Debug-formatted.
§
Causes self to use its LowerHex implementation when
Debug-formatted.
§
Causes self to use its Octal implementation when Debug-formatted.
§
Causes self to use its Pointer implementation when
Debug-formatted.
§
Causes self to use its UpperExp implementation when
Debug-formatted.
§
Causes self to use its UpperHex implementation when
Debug-formatted.
§
§
§
Calls .tap() only in debug builds, and is erased in release builds.
§
Calls .tap_mut() only in debug builds, and is erased in release
builds.
§
Calls .tap_borrow() only in debug builds, and is erased in release
builds.
§
Calls .tap_borrow_mut() only in debug builds, and is erased in release
builds.
§
Calls .tap_ref() only in debug builds, and is erased in release
builds.
§
Calls .tap_ref_mut() only in debug builds, and is erased in release
builds.
§
Calls .tap_deref() only in debug builds, and is erased in release
builds.
§
Calls .tap_deref_mut() only in debug builds, and is erased in release
builds.
Note: Most layout information is completely unstable and may even differ between compilations. The only exception is types with certain repr(...) attributes. Please see the Rust Reference's “Type Layout” chapter for details on type layout guarantees.
Size: 32 bytes
Size for each variant:
Open: 31 bytesCreateTable: 31 bytesWrite: 15 bytesRead: 31 bytesDelete: 31 bytesCommit: 31 bytesInitTx: 31 bytesInitCursor: 31 bytesDecode: 0 bytesStats: 31 bytesLogLevelUnavailable: 1 byteOther: 31 bytesCustom: 23 bytes