pub enum DbErrorKind {
Closed,
Busy,
Cancelled,
Panicked,
Driver,
Schema,
BadKey,
Decode,
Unsupported,
Deny,
}Variants§
Closed
An asynchronous request was rejected because its worker has closed.
Busy
The bounded worker queue has no room; the request was not accepted.
Cancelled
A queued read was cancelled before it began.
Panicked
A worker operation panicked. The worker is closed and must be reopened.
Driver
The engine said no: SQL error, I/O, constraint.
Schema
The stored schema and the declared one disagree in a way lightweight migration cannot close (a type change, a rename); the file is refused, never silently rewritten.
BadKey
The database would not open with the key it was given.
Decode
A stored value would not decode as the field’s type.
Unsupported
The driver cannot do this (encryption on a non-cipher build, …).
Deny
A DeleteRule::Deny relation refused the delete: children still reference the row.
Trait Implementations§
Source§impl Clone for DbErrorKind
impl Clone for DbErrorKind
impl Copy for DbErrorKind
Source§impl Debug for DbErrorKind
impl Debug for DbErrorKind
impl Eq for DbErrorKind
Source§impl PartialEq for DbErrorKind
impl PartialEq for DbErrorKind
impl StructuralPartialEq for DbErrorKind
Auto Trait Implementations§
impl Freeze for DbErrorKind
impl RefUnwindSafe for DbErrorKind
impl Send for DbErrorKind
impl Sync for DbErrorKind
impl Unpin for DbErrorKind
impl UnsafeUnpin for DbErrorKind
impl UnwindSafe for DbErrorKind
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<Q, K> Equivalent<K> for Q
impl<Q, K> Equivalent<K> for Q
impl<T> ErasedDestructor for Twhere
T: 'static,
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