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 programatically. This enum is not intended to be exhaustively matched, and new variants may be added in the future without a major version bump.

Variants

Trait Implementations

impl Debug for DatabaseErrorKind
[src]

Formats the value using the given formatter.

impl Clone for DatabaseErrorKind
[src]

Returns a copy of the value. Read more

Performs copy-assignment from source. Read more

impl Copy for DatabaseErrorKind
[src]