Enum redb::TableError
source · #[non_exhaustive]pub enum TableError {
TableTypeMismatch {
table: String,
key: TypeName,
value: TypeName,
},
TableIsMultimap(String),
TableIsNotMultimap(String),
TypeDefinitionChanged {
name: TypeName,
alignment: usize,
width: Option<usize>,
},
TableDoesNotExist(String),
TableAlreadyOpen(String, &'static Location<'static>),
Storage(StorageError),
}
Expand description
Errors related to opening tables
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.
TableTypeMismatch
Table types didn’t match.
TableIsMultimap(String)
The table is a multimap table
TableIsNotMultimap(String)
The table is not a multimap table
TypeDefinitionChanged
TableDoesNotExist(String)
Table name does not match any table in database
TableAlreadyOpen(String, &'static Location<'static>)
Storage(StorageError)
Error from underlying storage
Trait Implementations§
source§impl Debug for TableError
impl Debug for TableError
source§impl Display for TableError
impl Display for TableError
source§impl Error for TableError
impl Error for TableError
1.30.0 · source§fn source(&self) -> Option<&(dyn Error + 'static)>
fn source(&self) -> Option<&(dyn Error + 'static)>
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<StorageError> for TableError
impl From<StorageError> for TableError
source§fn from(err: StorageError) -> TableError
fn from(err: StorageError) -> TableError
Converts to this type from the input type.
source§impl From<TableError> for Error
impl From<TableError> for Error
source§fn from(err: TableError) -> Error
fn from(err: TableError) -> Error
Converts to this type from the input type.
Auto Trait Implementations§
impl Freeze for TableError
impl !RefUnwindSafe for TableError
impl Send for TableError
impl Sync for TableError
impl Unpin for TableError
impl !UnwindSafe for TableError
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