pub struct InstrumentedAggregateRepository<T, Inner>where
T: Aggregate + Debug,
<T as Aggregate>::Id: Debug,
<T as Aggregate>::Event: Debug,
Inner: Repository<T>,{ /* private fields */ }
Expand description
aggregate::Repository
type wrapper that provides instrumentation
features through the tracing
crate.
Trait Implementations§
source§impl<T, Inner> Clone for InstrumentedAggregateRepository<T, Inner>
impl<T, Inner> Clone for InstrumentedAggregateRepository<T, Inner>
source§fn clone(&self) -> InstrumentedAggregateRepository<T, Inner>
fn clone(&self) -> InstrumentedAggregateRepository<T, Inner>
Returns a copy of the value. Read more
1.0.0 · source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source
. Read moresource§impl<T, Inner> Debug for InstrumentedAggregateRepository<T, Inner>
impl<T, Inner> Debug for InstrumentedAggregateRepository<T, Inner>
source§impl<T, Inner> Getter<T> for InstrumentedAggregateRepository<T, Inner>
impl<T, Inner> Getter<T> for InstrumentedAggregateRepository<T, Inner>
source§fn get<'life0, 'life1, 'async_trait>(
&'life0 self,
id: &'life1 T::Id
) -> Pin<Box<dyn Future<Output = Result<Root<T>, GetError>> + Send + 'async_trait>>where
Self: 'async_trait,
'life0: 'async_trait,
'life1: 'async_trait,
fn get<'life0, 'life1, 'async_trait>(
&'life0 self,
id: &'life1 T::Id
) -> Pin<Box<dyn Future<Output = Result<Root<T>, GetError>> + Send + 'async_trait>>where
Self: 'async_trait,
'life0: 'async_trait,
'life1: 'async_trait,
Loads an aggregate::Root instance from the data store,
referenced by its unique identifier.
source§impl<T, Inner> Saver<T> for InstrumentedAggregateRepository<T, Inner>
impl<T, Inner> Saver<T> for InstrumentedAggregateRepository<T, Inner>
source§fn save<'life0, 'life1, 'async_trait>(
&'life0 self,
root: &'life1 mut Root<T>
) -> Pin<Box<dyn Future<Output = Result<(), SaveError>> + Send + 'async_trait>>where
Self: 'async_trait,
'life0: 'async_trait,
'life1: 'async_trait,
fn save<'life0, 'life1, 'async_trait>(
&'life0 self,
root: &'life1 mut Root<T>
) -> Pin<Box<dyn Future<Output = Result<(), SaveError>> + Send + 'async_trait>>where
Self: 'async_trait,
'life0: 'async_trait,
'life1: 'async_trait,
Saves a new version of an aggregate::Root instance to the data store.
Auto Trait Implementations§
impl<T, Inner> RefUnwindSafe for InstrumentedAggregateRepository<T, Inner>where
Inner: RefUnwindSafe,
T: RefUnwindSafe,
impl<T, Inner> Send for InstrumentedAggregateRepository<T, Inner>
impl<T, Inner> Sync for InstrumentedAggregateRepository<T, Inner>
impl<T, Inner> Unpin for InstrumentedAggregateRepository<T, Inner>
impl<T, Inner> UnwindSafe for InstrumentedAggregateRepository<T, Inner>where
Inner: UnwindSafe,
T: UnwindSafe,
Blanket Implementations§
source§impl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
source§fn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more