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 Freeze for IndexError
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
source§impl<Q, K> Equivalent<K> for Q
impl<Q, K> Equivalent<K> for Q
source§impl<Q, K> Equivalent<K> for Q
impl<Q, K> Equivalent<K> for Q
source§fn equivalent(&self, key: &K) -> bool
fn equivalent(&self, key: &K) -> bool
Compare self to
key and return true if they are equal.source§impl<Q, K> Equivalent<K> for Q
impl<Q, K> Equivalent<K> for Q
source§impl<T> Instrument for T
impl<T> Instrument for T
source§fn instrument(self, span: Span) -> Instrumented<Self>
fn instrument(self, span: Span) -> Instrumented<Self>
source§fn in_current_span(self) -> Instrumented<Self>
fn in_current_span(self) -> Instrumented<Self>
source§impl<T> IntoEither for T
impl<T> IntoEither for T
source§fn into_either(self, into_left: bool) -> Either<Self, Self>
fn into_either(self, into_left: bool) -> Either<Self, Self>
Converts
self into a Left variant of Either<Self, Self>
if into_left is true.
Converts self into a Right variant of Either<Self, Self>
otherwise. Read moresource§fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
Converts
self into a Left variant of Either<Self, Self>
if into_left(&self) returns true.
Converts self into a Right variant of Either<Self, Self>
otherwise. Read more