Trait DatabaseError

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

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<T, E> DatabaseError<T, E> for Result<T, E>
where E: StdError + Send + Sync + 'static,

Implementors§