Trait EventStoreExt

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

Extension trait that can be used to pull in supertypes implemented in this module.

Provided Methods§

Source

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.

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: Clone + Send + Sync, Event: Message + Clone + Send + Sync,