pub struct InMemoryViewStore<A, V>{ /* private fields */ }Expand description
A simple in-memory view store that can be used for testing or simple applications.
Implementations§
Source§impl<A, V> InMemoryViewStore<A, V>
impl<A, V> InMemoryViewStore<A, V>
Sourcepub fn get_all_views(&self) -> HashMap<String, V>
pub fn get_all_views(&self) -> HashMap<String, V>
Gets all views in the store.
Sourcepub fn update_view(&self, event: &EventEnvelope<A>) -> Result<(), CqrsError>
pub fn update_view(&self, event: &EventEnvelope<A>) -> Result<(), CqrsError>
Updates a view with an event.
Trait Implementations§
Auto Trait Implementations§
impl<A, V> Freeze for InMemoryViewStore<A, V>
impl<A, V> RefUnwindSafe for InMemoryViewStore<A, V>where
A: RefUnwindSafe,
impl<A, V> Send for InMemoryViewStore<A, V>
impl<A, V> Sync for InMemoryViewStore<A, V>
impl<A, V> Unpin for InMemoryViewStore<A, V>where
A: Unpin,
impl<A, V> UnsafeUnpin for InMemoryViewStore<A, V>
impl<A, V> UnwindSafe for InMemoryViewStore<A, V>where
A: UnwindSafe,
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