Enum schemamama::Error [] [src]

pub enum Error<E> {
    Adapter(E),
    Migration {
        version: Version,
        description: String,
        direction: Direction,
        error: E,
    },
}

An all-encompassing error type that can be returned during interaction with the migrator adapter.

Variants

A generic error that occurred while interacting with the adapter.

An error that arose from the adapter specifically during a migration's execution.

Fields of Migration

The version of the migration that failed.

The description of the migration that failed.

The direction in which the failed migration was ran.

The underlying error from the adapter.

Trait Implementations

impl<E: Debug> Debug for Error<E>
[src]

[src]

Formats the value using the given formatter. Read more

impl<E: StdError> StdError for Error<E>
[src]

[src]

A short description of the error. Read more

[src]

The lower-level cause of this error, if any. Read more

impl<E: StdError> Display for Error<E>
[src]

[src]

Formats the value using the given formatter. Read more

Auto Trait Implementations

impl<E> Send for Error<E> where
    E: Send

impl<E> Sync for Error<E> where
    E: Sync