Trait EventStoreExt

Source
pub trait EventStoreExt<StreamId, Event>: Store<StreamId, Event> + Sized
where StreamId: Debug + Send + Sync, Event: Message + Debug + Send + Sync,
{ // Provided method fn with_tracing(self) -> InstrumentedEventStore<Self, StreamId, Event> { ... } }
Expand description

Extension trait for any event::Store type to provide instrumentation features through the tracing crate.

Provided Methods§

Source

fn with_tracing(self) -> InstrumentedEventStore<Self, StreamId, Event>

Returns an instrumented version of the event::Store instance.

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§

Source§

impl<T, StreamId, Event> EventStoreExt<StreamId, Event> for T
where T: Store<StreamId, Event> + Send + Sync, StreamId: Debug + Send + Sync, Event: Message + Debug + Send + Sync,