Struct eventually::tracing::InstrumentedEventStore
source · pub struct InstrumentedEventStore<T, StreamId, Event>where
T: Store<StreamId, Event> + Send + Sync,
StreamId: Debug + Send + Sync,
Event: Message + Debug + Send + Sync,{ /* private fields */ }
Expand description
event::Store
type wrapper that provides instrumentation
features through the tracing
crate.
Trait Implementations§
source§impl<T, StreamId, Event> Appender<StreamId, Event> for InstrumentedEventStore<T, StreamId, Event>
impl<T, StreamId, Event> Appender<StreamId, Event> for InstrumentedEventStore<T, StreamId, Event>
source§fn append<'life0, 'async_trait>(
&'life0 self,
id: StreamId,
version_check: Check,
events: Vec<Envelope<Event>>
) -> Pin<Box<dyn Future<Output = Result<Version, AppendError>> + Send + 'async_trait>>where
Self: 'async_trait,
'life0: 'async_trait,
fn append<'life0, 'async_trait>(
&'life0 self,
id: StreamId,
version_check: Check,
events: Vec<Envelope<Event>>
) -> Pin<Box<dyn Future<Output = Result<Version, AppendError>> + Send + 'async_trait>>where
Self: 'async_trait,
'life0: 'async_trait,
Appens new Domain Events to the specified Event Stream. Read more
source§impl<T, StreamId, Event> Clone for InstrumentedEventStore<T, StreamId, Event>
impl<T, StreamId, Event> Clone for InstrumentedEventStore<T, StreamId, Event>
source§fn clone(&self) -> InstrumentedEventStore<T, StreamId, Event>
fn clone(&self) -> InstrumentedEventStore<T, StreamId, Event>
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, StreamId, Event> Debug for InstrumentedEventStore<T, StreamId, Event>
impl<T, StreamId, Event> Debug for InstrumentedEventStore<T, StreamId, Event>
Auto Trait Implementations§
impl<T, StreamId, Event> RefUnwindSafe for InstrumentedEventStore<T, StreamId, Event>
impl<T, StreamId, Event> Send for InstrumentedEventStore<T, StreamId, Event>
impl<T, StreamId, Event> Sync for InstrumentedEventStore<T, StreamId, Event>
impl<T, StreamId, Event> Unpin for InstrumentedEventStore<T, StreamId, Event>
impl<T, StreamId, Event> UnwindSafe for InstrumentedEventStore<T, StreamId, Event>
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
source§impl<T, StreamId, Event> EventStoreExt<StreamId, Event> for T
impl<T, StreamId, Event> EventStoreExt<StreamId, Event> for T
source§fn with_tracing(self) -> InstrumentedEventStore<Self, StreamId, Event>
fn with_tracing(self) -> InstrumentedEventStore<Self, StreamId, Event>
Returns an instrumented version of the
event::Store
instance.source§impl<T, StreamId, Event> EventStoreExt<StreamId, Event> for T
impl<T, StreamId, Event> EventStoreExt<StreamId, Event> for T
source§fn with_recorded_events_tracking(self) -> Tracking<Self, StreamId, Event>
fn with_recorded_events_tracking(self) -> Tracking<Self, StreamId, Event>
Returns a
Tracking
instance that decorates the original event::Store
instanca this method has been called on.