Skip to main content

RepoUnitOfWork

Trait RepoUnitOfWork 

Source
pub trait RepoUnitOfWork: Repo {
    // Required method
    fn transaction<T, F>(&mut self, operation: F) -> DataResult<T>
       where F: FnOnce(&mut Self) -> DataResult<T>;
}

Required Methods§

Source

fn transaction<T, F>(&mut self, operation: F) -> DataResult<T>
where F: FnOnce(&mut Self) -> DataResult<T>,

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§