Skip to main content

StorageError

Enum StorageError 

Source
#[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

Fields

§name: String
§

TableNotFound

Fields

§name: String
§

ArityMismatch

Fields

§expected: usize
§actual: usize
§

TypeMismatch

Fields

§column: String
§expected: DataType
§actual: DataType
§position: usize
§

NullInNotNull

Fields

§column: String
§

DuplicateIndex

Index with this name already exists on the table.

Fields

§name: String
§

ColumnNotFound

Column referenced by an index doesn’t exist on the table.

Fields

§column: String
§

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.

Fields

§name: String
§

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

Source§

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)

Performs copy-assignment from source. Read more
Source§

impl Debug for StorageError

Source§

fn fmt(&self, f: &mut Formatter<'_>) -> Result

Formats the value using the given formatter. Read more
Source§

impl Display for StorageError

Source§

fn fmt(&self, f: &mut Formatter<'_>) -> Result

Formats the value using the given formatter. Read more
Source§

impl Eq for StorageError

Source§

impl PartialEq for StorageError

Source§

fn eq(&self, other: &StorageError) -> bool

Tests for self and other values to be equal, and is used by ==.
1.0.0 (const: unstable) · Source§

fn ne(&self, other: &Rhs) -> bool

Tests for !=. The default implementation is almost always sufficient, and should not be overridden without very good reason.
Source§

impl StructuralPartialEq for StorageError

Auto Trait Implementations§

Blanket Implementations§

Source§

impl<T> Any for T
where T: 'static + ?Sized,

Source§

fn type_id(&self) -> TypeId

Gets the TypeId of self. Read more
Source§

impl<T> Borrow<T> for T
where T: ?Sized,

Source§

fn borrow(&self) -> &T

Immutably borrows from an owned value. Read more
Source§

impl<T> BorrowMut<T> for T
where T: ?Sized,

Source§

fn borrow_mut(&mut self) -> &mut T

Mutably borrows from an owned value. Read more
Source§

impl<T> CloneToUninit for T
where T: Clone,

Source§

unsafe fn clone_to_uninit(&self, dest: *mut u8)

🔬This is a nightly-only experimental API. (clone_to_uninit)
Performs copy-assignment from self to dest. Read more
Source§

impl<T> From<T> for T

Source§

fn from(t: T) -> T

Returns the argument unchanged.

Source§

impl<T, U> Into<U> for T
where U: From<T>,

Source§

fn into(self) -> U

Calls U::from(self).

That is, this conversion is whatever the implementation of From<T> for U chooses to do.

Source§

impl<T> ToOwned for T
where T: Clone,

Source§

type Owned = T

The resulting type after obtaining ownership.
Source§

fn to_owned(&self) -> T

Creates owned data from borrowed data, usually by cloning. Read more
Source§

fn clone_into(&self, target: &mut T)

Uses borrowed data to replace owned data, usually by cloning. Read more
Source§

impl<T> ToString for T
where T: Display + ?Sized,

Source§

fn to_string(&self) -> String

Converts the given value to a String. Read more
Source§

impl<T, U> TryFrom<U> for T
where U: Into<T>,

Source§

type Error = Infallible

The type returned in the event of a conversion error.
Source§

fn try_from(value: U) -> Result<T, <T as TryFrom<U>>::Error>

Performs the conversion.
Source§

impl<T, U> TryInto<U> for T
where U: TryFrom<T>,

Source§

type Error = <U as TryFrom<T>>::Error

The type returned in the event of a conversion error.
Source§

fn try_into(self) -> Result<U, <U as TryFrom<T>>::Error>

Performs the conversion.