Enum diesel::result::DatabaseErrorKind [−][src]
pub enum DatabaseErrorKind { UniqueViolation, ForeignKeyViolation, UnableToSendCommand, // some variants omitted }
The kind of database error that occurred.
This is not meant to exhaustively cover all possible errors, but is used to identify errors which are commonly recovered from programmatically. This enum is not intended to be exhaustively matched, and new variants may be added in the future without a major version bump.
Variants
UniqueViolation
A unique constraint was violated.
ForeignKeyViolation
A foreign key constraint was violated.
UnableToSendCommand
The query could not be sent to the database due to a protocol violation.
An example of a case where this would occur is if you attempted to send a query with more than 65000 bind parameters using PostgreSQL.
Trait Implementations
impl Debug for DatabaseErrorKind
[src]
impl Debug for DatabaseErrorKind
fn fmt(&self, f: &mut Formatter) -> Result
[src]
fn fmt(&self, f: &mut Formatter) -> Result
Formats the value using the given formatter. Read more
impl Clone for DatabaseErrorKind
[src]
impl Clone for DatabaseErrorKind
fn clone(&self) -> DatabaseErrorKind
[src]
fn clone(&self) -> DatabaseErrorKind
Returns a copy of the value. Read more
fn clone_from(&mut self, source: &Self)
1.0.0[src]
fn clone_from(&mut self, source: &Self)
1.0.0
[src]Performs copy-assignment from source
. Read more
impl Copy for DatabaseErrorKind
[src]
impl Copy for DatabaseErrorKind
Auto Trait Implementations
impl Send for DatabaseErrorKind
impl Send for DatabaseErrorKind
impl Sync for DatabaseErrorKind
impl Sync for DatabaseErrorKind