tern_core::error

Trait DatabaseError

Source
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.

Required Methods§

Implementations on Foreign Types§

Source§

impl<T, E> DatabaseError<T, E> for Result<T, E>
where E: StdError + Send + Sync + 'static,

Implementors§