pub struct SharedEventStore(pub Arc<InMemoryEventStore>);Expand description
Shared event store: wraps Arc<InMemoryEventStore> so graph and Kernel can share the same log.
Tuple Fields§
§0: Arc<InMemoryEventStore>Implementations§
Trait Implementations§
Source§fn append(&self, run_id: &RunId, events: &[Event]) -> Result<Seq, KernelError>
fn append(&self, run_id: &RunId, events: &[Event]) -> Result<Seq, KernelError>
Appends events for the given run. Returns the seq of the last written event (or an error).
Implementations must assign seqs if not present and guarantee atomicity.
Source§fn scan(
&self,
run_id: &RunId,
from: Seq,
) -> Result<Vec<SequencedEvent>, KernelError>
fn scan( &self, run_id: &RunId, from: Seq, ) -> Result<Vec<SequencedEvent>, KernelError>
Scans events for the run starting at
from (inclusive), in ascending seq order.Auto Trait Implementations§
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