pub enum QdbError {
Show 19 variants
KeyNotFound(String),
KeyExists(String),
InvalidKey(String),
ValueError(String),
QftError(QftError),
IoError(Error),
SerializationError(String),
TransactionError(String),
QueryError(String),
BackendError(String),
ChecksumMismatch(String),
GolayDecodeFailed,
ReadOnly,
Closed,
ConcurrentModification(String),
IndexError(String),
CapacityExceeded(String),
InvalidInput(String),
VectorError(String),
}Expand description
Error type for QDB operations
Variants§
KeyNotFound(String)
Key not found in database
KeyExists(String)
Key already exists (for insert operations)
InvalidKey(String)
Invalid key format
ValueError(String)
Value serialization/deserialization error
QftError(QftError)
QFT format error
IoError(Error)
I/O error
SerializationError(String)
Serialization error
TransactionError(String)
Transaction error
QueryError(String)
Query error
BackendError(String)
Backend error
ChecksumMismatch(String)
Checksum mismatch
GolayDecodeFailed
Golay decode failed
ReadOnly
Database is read-only
Closed
Database is closed
ConcurrentModification(String)
Concurrent modification detected
IndexError(String)
Index error
CapacityExceeded(String)
Capacity exceeded
InvalidInput(String)
Invalid input
VectorError(String)
Vector store error
Trait Implementations§
Source§impl Error for QdbError
impl Error for QdbError
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()
Auto Trait Implementations§
impl Freeze for QdbError
impl !RefUnwindSafe for QdbError
impl Send for QdbError
impl Sync for QdbError
impl Unpin for QdbError
impl !UnwindSafe for QdbError
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