pub struct MemoryProjectionBatch { /* private fields */ }Available on crate feature
memory only.Expand description
An in-flight write against a MemoryProjectionStore.
Owned, and not a live transaction: it holds a materialised delta plus the
stamp of the store instance that minted it. Nothing it holds is visible
through the store until commit or
reset takes it.
Dropping it discards it and leaves the store usable — there is nothing to release, because nothing was ever handed to the store.
Implementations§
Source§impl MemoryProjectionBatch
impl MemoryProjectionBatch
Sourcepub fn delete_all(&mut self)
pub fn delete_all(&mut self)
Queues removal of every row in the read model.
This is what a caller puts in the batch they hand to
reset: the port never learns which
rows are the read model, so the caller supplies the deletes.
Trait Implementations§
Source§impl Clone for MemoryProjectionBatch
impl Clone for MemoryProjectionBatch
Auto Trait Implementations§
impl Freeze for MemoryProjectionBatch
impl RefUnwindSafe for MemoryProjectionBatch
impl Send for MemoryProjectionBatch
impl Sync for MemoryProjectionBatch
impl Unpin for MemoryProjectionBatch
impl UnsafeUnpin for MemoryProjectionBatch
impl UnwindSafe for MemoryProjectionBatch
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