pub trait DatabaseError<T, E> {
// Required methods
fn tern_result(self) -> TernResult<T>;
fn void_tern_result(self) -> TernResult<()>;
fn tern_migration_result<M: Migration + ?Sized>(
self,
migration: &M,
) -> TernResult<T>;
fn void_tern_migration_result<M: Migration + ?Sized>(
self,
migration: &M,
) -> TernResult<()>;
}
Expand description
Converting a result with a generic std::error::Error
to one with this
crate’s error type.
Required Methods§
fn tern_result(self) -> TernResult<T>
fn void_tern_result(self) -> TernResult<()>
fn tern_migration_result<M: Migration + ?Sized>( self, migration: &M, ) -> TernResult<T>
fn void_tern_migration_result<M: Migration + ?Sized>( self, migration: &M, ) -> TernResult<()>
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.