pub struct InMemoryStore<E> { /* private fields */ }Trait Implementations§
Source§impl<E: Clone> Clone for InMemoryStore<E>
impl<E: Clone> Clone for InMemoryStore<E>
Source§fn clone(&self) -> InMemoryStore<E>
fn clone(&self) -> InMemoryStore<E>
Returns a duplicate of the value. Read more
1.0.0 (const: unstable) · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source. Read moreSource§impl<E: Debug> Debug for InMemoryStore<E>
impl<E: Debug> Debug for InMemoryStore<E>
Source§impl<E> Default for InMemoryStore<E>
impl<E> Default for InMemoryStore<E>
Source§impl<E: Clone> EventStore<E> for InMemoryStore<E>
impl<E: Clone> EventStore<E> for InMemoryStore<E>
Source§fn append(
&mut self,
stream: &StreamId,
expected: ExpectedVersion,
events: &[NewEvent<E>],
) -> Result<Vec<StoredEvent<E>>>
fn append( &mut self, stream: &StreamId, expected: ExpectedVersion, events: &[NewEvent<E>], ) -> Result<Vec<StoredEvent<E>>>
Atomically appends a batch to one stream. Read more
Source§fn append_owned(
&mut self,
stream: &StreamId,
expected: ExpectedVersion,
events: Vec<NewEvent<E>>,
) -> Result<Vec<StoredEvent<E>>>
fn append_owned( &mut self, stream: &StreamId, expected: ExpectedVersion, events: Vec<NewEvent<E>>, ) -> Result<Vec<StoredEvent<E>>>
Appends an owned batch without requiring callers to retain the inputs. Read more
Source§fn append_owned_receipt(
&mut self,
stream: &StreamId,
expected: ExpectedVersion,
events: Vec<NewEvent<E>>,
) -> Result<AppendReceipt>
fn append_owned_receipt( &mut self, stream: &StreamId, expected: ExpectedVersion, events: Vec<NewEvent<E>>, ) -> Result<AppendReceipt>
Appends an owned batch and returns positions without cloning committed
payloads back to the caller. Read more
fn load_stream( &self, stream: &StreamId, after: Option<u64>, ) -> Vec<StoredEvent<E>>
fn load_all(&self, after: Option<u64>, limit: usize) -> Vec<StoredEvent<E>>
fn stream_version(&self, stream: &StreamId) -> Option<u64>
fn len(&self) -> usize
fn is_empty(&self) -> bool
Auto Trait Implementations§
impl<E> Freeze for InMemoryStore<E>
impl<E> RefUnwindSafe for InMemoryStore<E>where
E: RefUnwindSafe,
impl<E> Send for InMemoryStore<E>where
E: Send,
impl<E> Sync for InMemoryStore<E>where
E: Sync,
impl<E> Unpin for InMemoryStore<E>where
E: Unpin,
impl<E> UnsafeUnpin for InMemoryStore<E>
impl<E> UnwindSafe for InMemoryStore<E>where
E: 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