#[non_exhaustive]pub enum StorageError {
DuplicateTable {
name: String,
},
TableNotFound {
name: String,
},
ArityMismatch {
expected: usize,
actual: usize,
},
TypeMismatch {
column: String,
expected: DataType,
actual: DataType,
position: usize,
},
NullInNotNull {
column: String,
},
DuplicateIndex {
name: String,
},
ColumnNotFound {
column: String,
},
Corrupt(String),
IndexNotFound {
name: String,
},
Unsupported(String),
}Variants (Non-exhaustive)§
This enum is marked as non-exhaustive
Non-exhaustive enums could have additional variants added in future. Therefore, when matching against variants of non-exhaustive enums, an extra wildcard arm must be added to account for any future variants.
DuplicateTable
TableNotFound
ArityMismatch
TypeMismatch
NullInNotNull
DuplicateIndex
Index with this name already exists on the table.
ColumnNotFound
Column referenced by an index doesn’t exist on the table.
Corrupt(String)
On-disk format failed to parse — corrupted file, wrong magic, truncated payload, or unknown tag bytes.
IndexNotFound
v6.0.4 — ALTER INDEX targeted an index name that doesn’t exist on any table in this catalog.
Unsupported(String)
v6.0.4 — operation requested isn’t supported on this index
kind / column type (e.g. ALTER INDEX REBUILD on a BTree
index, or REBUILD WITH (encoding=…) on a non-vector column).
Trait Implementations§
Source§impl Clone for StorageError
impl Clone for StorageError
Source§fn clone(&self) -> StorageError
fn clone(&self) -> StorageError
Returns a duplicate of the value. Read more
1.0.0 (const: unstable) · 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 StorageError
impl Debug for StorageError
Source§impl Display for StorageError
impl Display for StorageError
impl Eq for StorageError
Source§impl PartialEq for StorageError
impl PartialEq for StorageError
Source§fn eq(&self, other: &StorageError) -> bool
fn eq(&self, other: &StorageError) -> bool
Tests for
self and other values to be equal, and is used by ==.impl StructuralPartialEq for StorageError
Auto Trait Implementations§
impl Freeze for StorageError
impl RefUnwindSafe for StorageError
impl Send for StorageError
impl Sync for StorageError
impl Unpin for StorageError
impl UnsafeUnpin for StorageError
impl UnwindSafe for StorageError
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