pub struct InMemoryProjectionStore { /* private fields */ }Expand description
In-memory ProjectionStore — intended for tests and Tier-0 dev runs.
Implementations§
Trait Implementations§
Source§impl Debug for InMemoryProjectionStore
impl Debug for InMemoryProjectionStore
Source§impl Default for InMemoryProjectionStore
impl Default for InMemoryProjectionStore
Source§fn default() -> InMemoryProjectionStore
fn default() -> InMemoryProjectionStore
Returns the “default value” for a type. Read more
Source§impl ProjectionStore for InMemoryProjectionStore
impl ProjectionStore for InMemoryProjectionStore
Source§fn upsert_actor(&mut self, row: &ActorProjection) -> Result<(), ProjectionError>
fn upsert_actor(&mut self, row: &ActorProjection) -> Result<(), ProjectionError>
Upsert an Actor row.
Active observer only.Source§fn upsert_space(&mut self, row: &SpaceProjection) -> Result<(), ProjectionError>
fn upsert_space(&mut self, row: &SpaceProjection) -> Result<(), ProjectionError>
Upsert a Space row.
Active observer only.Source§fn upsert_entry(&mut self, row: &EntryProjection) -> Result<(), ProjectionError>
fn upsert_entry(&mut self, row: &EntryProjection) -> Result<(), ProjectionError>
Upsert an Entry row.
Active observer only.Source§fn upsert_activity(
&mut self,
row: &ActivityProjection,
) -> Result<(), ProjectionError>
fn upsert_activity( &mut self, row: &ActivityProjection, ) -> Result<(), ProjectionError>
Upsert an Activity row.
Active observer only.Source§fn get_activity(&self, activity_id: ActivityId) -> Option<ActivityProjection>
fn get_activity(&self, activity_id: ActivityId) -> Option<ActivityProjection>
Read an Activity row.
Auto Trait Implementations§
impl Freeze for InMemoryProjectionStore
impl RefUnwindSafe for InMemoryProjectionStore
impl Send for InMemoryProjectionStore
impl Sync for InMemoryProjectionStore
impl Unpin for InMemoryProjectionStore
impl UnsafeUnpin for InMemoryProjectionStore
impl UnwindSafe for InMemoryProjectionStore
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