pub enum QueryErrorKind {
Syntax,
Constraint,
NotFound,
Permission,
DataTruncation,
Deadlock,
Serialization,
Timeout,
Cancelled,
Database,
}Variants§
Syntax
Syntax error in SQL
Constraint
Constraint violation (unique, foreign key, etc.)
NotFound
Table or column not found
Permission
Permission denied
DataTruncation
Data too large for column
Deadlock
Deadlock detected
Serialization
Serialization failure (retry may succeed)
Timeout
Statement timeout
Cancelled
Cancelled
Database
Other database error
Trait Implementations§
Source§impl Clone for QueryErrorKind
impl Clone for QueryErrorKind
Source§fn clone(&self) -> QueryErrorKind
fn clone(&self) -> QueryErrorKind
Returns a duplicate of the value. Read more
1.0.0 · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source. Read moreSource§impl Debug for QueryErrorKind
impl Debug for QueryErrorKind
Source§impl PartialEq for QueryErrorKind
impl PartialEq for QueryErrorKind
impl Copy for QueryErrorKind
impl Eq for QueryErrorKind
impl StructuralPartialEq for QueryErrorKind
Auto Trait Implementations§
impl Freeze for QueryErrorKind
impl RefUnwindSafe for QueryErrorKind
impl Send for QueryErrorKind
impl Sync for QueryErrorKind
impl Unpin for QueryErrorKind
impl UnwindSafe for QueryErrorKind
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<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
Source§impl<T> Instrument for T
impl<T> Instrument for T
Source§fn instrument(self, _span: NoopSpan) -> Self
fn instrument(self, _span: NoopSpan) -> Self
Instruments this future with a span (no-op when disabled).
Source§fn in_current_span(self) -> Self
fn in_current_span(self) -> Self
Instruments this future with the current span (no-op when disabled).