Trait UpdatableRepositoryTransaction

Source
pub trait UpdatableRepositoryTransaction<M: Model>: UpdatableRepository<M> + TransactionRepository<M> {
    // Provided methods
    fn update_in_transaction<'a>(
        &'a self,
        model: M,
    ) -> impl Future<Output = Result<M, Error>> + Send + 'a
       where M: 'a { ... }
    fn update_ref_in_transaction<'a, 'b>(
        &'a self,
        model: &'b M,
    ) -> impl Future<Output = Result<(), Error>> + Send + 'a
       where M: 'b,
             'b: 'a { ... }
}

Provided Methods§

Source

fn update_in_transaction<'a>( &'a self, model: M, ) -> impl Future<Output = Result<M, Error>> + Send + 'a
where M: 'a,

Source

fn update_ref_in_transaction<'a, 'b>( &'a self, model: &'b M, ) -> impl Future<Output = Result<(), Error>> + Send + 'a
where M: 'b, 'b: 'a,

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.

Implementors§