pub trait TRepository<E: Executor, A: Aggregate>: REventManager<A> {
    // Required methods
    fn new(executor: Arc<RwLock<E>>) -> Self;
    fn get<'life0, 'life1, 'async_trait>(
        &'life0 self,
        aggregate_id: &'life1 str
    ) -> Pin<Box<dyn Future<Output = Result<A, BaseError>> + Send + 'async_trait>>
       where Self: 'async_trait,
             'life0: 'async_trait,
             'life1: 'async_trait;
    fn update<'life0, 'life1, 'async_trait>(
        &'life0 mut self,
        aggregate: &'life1 mut A
    ) -> Pin<Box<dyn Future<Output = Result<(), BaseError>> + Send + 'async_trait>>
       where Self: 'async_trait,
             'life0: 'async_trait,
             'life1: 'async_trait;
    fn add<'life0, 'life1, 'async_trait>(
        &'life0 mut self,
        aggregate: &'life1 mut A
    ) -> Pin<Box<dyn Future<Output = Result<String, BaseError>> + Send + 'async_trait>>
       where Self: 'async_trait,
             'life0: 'async_trait,
             'life1: 'async_trait;
    fn delete<'life0, 'life1, 'async_trait>(
        &'life0 self,
        _aggregate_id: &'life1 str
    ) -> Pin<Box<dyn Future<Output = Result<(), BaseError>> + Send + 'async_trait>>
       where Self: 'async_trait,
             'life0: 'async_trait,
             'life1: 'async_trait;
}

Required Methods§

source

fn new(executor: Arc<RwLock<E>>) -> Self

source

fn get<'life0, 'life1, 'async_trait>( &'life0 self, aggregate_id: &'life1 str ) -> Pin<Box<dyn Future<Output = Result<A, BaseError>> + Send + 'async_trait>>where Self: 'async_trait, 'life0: 'async_trait, 'life1: 'async_trait,

source

fn update<'life0, 'life1, 'async_trait>( &'life0 mut self, aggregate: &'life1 mut A ) -> Pin<Box<dyn Future<Output = Result<(), BaseError>> + Send + 'async_trait>>where Self: 'async_trait, 'life0: 'async_trait, 'life1: 'async_trait,

source

fn add<'life0, 'life1, 'async_trait>( &'life0 mut self, aggregate: &'life1 mut A ) -> Pin<Box<dyn Future<Output = Result<String, BaseError>> + Send + 'async_trait>>where Self: 'async_trait, 'life0: 'async_trait, 'life1: 'async_trait,

source

fn delete<'life0, 'life1, 'async_trait>( &'life0 self, _aggregate_id: &'life1 str ) -> Pin<Box<dyn Future<Output = Result<(), BaseError>> + Send + 'async_trait>>where Self: 'async_trait, 'life0: 'async_trait, 'life1: 'async_trait,

Object Safety§

This trait is not object safe.

Implementors§