pub trait DatabaseError<T, E> {
// Required methods
fn void_tern_result(self) -> TernResult<()>;
fn void_tern_migration_result(self, version: i64) -> TernResult<()>;
fn tern_result(self) -> TernResult<T>;
fn tern_migration_result(self, version: i64) -> TernResult<T>;
}
Expand description
Converting a result with a generic std::error::Error
to one with this
crate’s error type.