Trait esrs::store::ProjectorStore [−][src]
pub trait ProjectorStore<Event: Serialize + DeserializeOwned + Send + Sync, Executor, Error> {
fn project_event<'a>(
&'a self,
store_event: &'a StoreEvent<Event>,
executor: &'a mut Executor
) -> Pin<Box<dyn Future<Output = Result<(), Error>> + Send + 'a>>
where
Self: Sync + 'a;
}
Expand description
A ProjectorStore is responsible for projecting an event (that has been persisted to the database) into a form that is better suited to being read by other parts of the application.