tern_core::error

Trait ToMigrationResult

Source
pub trait ToMigrationResult<E> {
    // Required method
    fn to_migration_result<M>(self, migration: &M) -> MigrationResult
       where M: Migration + ?Sized;
}
Expand description

Converting the Result<AppliedMigration, E> of a migration attempt to the pretty-printable MigrationResult (which combines Ok/Err).

Required Methods§

Source

fn to_migration_result<M>(self, migration: &M) -> MigrationResult
where M: Migration + ?Sized,

Dyn Compatibility§

This trait is not dyn compatible.

In older versions of Rust, dyn compatibility was called "object safety", so this trait is not object safe.

Implementations on Foreign Types§

Source§

impl<E> ToMigrationResult<E> for Result<AppliedMigration, E>
where E: StdError + Send + Sync + 'static,

Source§

fn to_migration_result<M>(self, migration: &M) -> MigrationResult
where M: Migration + ?Sized,

Implementors§