pub enum DbErrorKind {
Show 32 variants
UniqueViolation,
ForeignKeyViolation,
CheckViolation,
NotNullViolation,
ExclusionViolation,
SerializationFailure,
DeadlockDetected,
QueryCanceled,
LockNotAvailable,
InvalidTextRepresentation,
NumericOutOfRange,
DatetimeFieldOverflow,
DataException,
SyntaxError,
UndefinedTable,
UndefinedColumn,
InsufficientPrivilege,
RaiseException,
InFailedTransaction,
Connection,
PoolTimeout,
InvalidParameter,
UnsupportedType,
TooManyRows,
ColumnNotFound,
Decode,
TransactionNotFound,
TransactionLimit,
NotSupported,
Protocol,
Unavailable,
Other,
}Variants§
UniqueViolation
ForeignKeyViolation
CheckViolation
NotNullViolation
ExclusionViolation
SerializationFailure
DeadlockDetected
QueryCanceled
LockNotAvailable
InvalidTextRepresentation
NumericOutOfRange
DatetimeFieldOverflow
DataException
SyntaxError
UndefinedTable
UndefinedColumn
InsufficientPrivilege
RaiseException
InFailedTransaction
Connection
PoolTimeout
InvalidParameter
UnsupportedType
TooManyRows
ColumnNotFound
Decode
TransactionNotFound
TransactionLimit
NotSupported
Protocol
Other
A kind this SDK does not know, from a newer platform.
Implementations§
Source§impl DbErrorKind
impl DbErrorKind
Sourcepub fn from_sqlstate(code: &str) -> Self
pub fn from_sqlstate(code: &str) -> Self
The kind of a Postgres SQLSTATE: the exact codes first, then the data-exception and connection classes.
Trait Implementations§
Source§impl Clone for DbErrorKind
impl Clone for DbErrorKind
impl Copy for DbErrorKind
Source§impl Debug for DbErrorKind
impl Debug for DbErrorKind
Source§impl<'de> Deserialize<'de> for DbErrorKind
impl<'de> Deserialize<'de> for DbErrorKind
Source§fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
__D: Deserializer<'de>,
fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
__D: Deserializer<'de>,
Deserialize this value from the given Serde deserializer. Read more
Source§impl Display for DbErrorKind
impl Display for DbErrorKind
impl Eq for DbErrorKind
Source§impl Hash for DbErrorKind
impl Hash for DbErrorKind
Source§impl PartialEq for DbErrorKind
impl PartialEq for DbErrorKind
Source§impl Serialize for DbErrorKind
impl Serialize 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