Enum spacetimedb::error::IndexError
source · pub enum IndexError {
NotFound(IndexId),
IndexAlreadyExists(IndexDef, String),
ColumnNotFound(IndexDef),
UniqueConstraintViolation(UniqueConstraintViolation),
OneAutoInc(TableId, Vec<String>),
}Variants§
NotFound(IndexId)
IndexAlreadyExists(IndexDef, String)
ColumnNotFound(IndexDef)
UniqueConstraintViolation(UniqueConstraintViolation)
OneAutoInc(TableId, Vec<String>)
Trait Implementations§
source§impl Debug for IndexError
impl Debug for IndexError
source§impl Display for IndexError
impl Display for IndexError
source§impl Error for IndexError
impl Error for IndexError
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<IndexError> for DBError
impl From<IndexError> for DBError
source§fn from(source: IndexError) -> Self
fn from(source: IndexError) -> Self
Converts to this type from the input type.
source§impl From<UniqueConstraintViolation> for IndexError
impl From<UniqueConstraintViolation> for IndexError
source§fn from(source: UniqueConstraintViolation) -> Self
fn from(source: UniqueConstraintViolation) -> Self
Converts to this type from the input type.
source§impl PartialEq for IndexError
impl PartialEq for IndexError
source§fn eq(&self, other: &IndexError) -> bool
fn eq(&self, other: &IndexError) -> bool
This method tests for
self and other values to be equal, and is used
by ==.impl Eq for IndexError
impl StructuralPartialEq for IndexError
Auto Trait Implementations§
impl RefUnwindSafe for IndexError
impl Send for IndexError
impl Sync for IndexError
impl Unpin for IndexError
impl UnwindSafe for IndexError
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
§impl<Q, K> Equivalent<K> for Q
impl<Q, K> Equivalent<K> for Q
§fn equivalent(&self, key: &K) -> bool
fn equivalent(&self, key: &K) -> bool
Checks if this value is equivalent to the given key. Read more
§impl<Q, K> Equivalent<K> for Q
impl<Q, K> Equivalent<K> for Q
§fn equivalent(&self, key: &K) -> bool
fn equivalent(&self, key: &K) -> bool
Compare self to
key and return true if they are equal.§impl<Q, K> Equivalent<K> for Q
impl<Q, K> Equivalent<K> for Q
§fn equivalent(&self, key: &K) -> bool
fn equivalent(&self, key: &K) -> bool
Checks if this value is equivalent to the given key. Read more