pub struct EventCounterProjection { /* private fields */ }Expand description
Event counter projection - counts events by type
Implementations§
Trait Implementations§
Source§impl Projection for EventCounterProjection
impl Projection for EventCounterProjection
Source§fn process(&self, event: &Event) -> Result<()>
fn process(&self, event: &Event) -> Result<()>
Process an event and update the projection state
Source§fn get_state(&self, event_type: &str) -> Option<Value>
fn get_state(&self, event_type: &str) -> Option<Value>
Get the current state of the projection for an entity
Auto Trait Implementations§
impl Freeze for EventCounterProjection
impl !RefUnwindSafe for EventCounterProjection
impl Send for EventCounterProjection
impl Sync for EventCounterProjection
impl Unpin for EventCounterProjection
impl UnsafeUnpin for EventCounterProjection
impl !UnwindSafe for EventCounterProjection
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