#[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)>
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()
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
Layout§
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: 88 bytes
Size for each variant:
TableTypeMismatch
: 88 bytesTableIsMultimap
: 32 bytesTableIsNotMultimap
: 32 bytesTypeDefinitionChanged
: 64 bytesTableDoesNotExist
: 32 bytesTableAlreadyOpen
: 40 bytesStorage
: 32 bytes