pub struct InMemoryEventStore { /* private fields */ }Expand description
In-memory event store for debugging and testing.
Implementations§
Trait Implementations§
Source§impl Debug for InMemoryEventStore
impl Debug for InMemoryEventStore
Source§impl Default for InMemoryEventStore
impl Default for InMemoryEventStore
Source§fn default() -> InMemoryEventStore
fn default() -> InMemoryEventStore
Returns the “default value” for a type. Read more
Source§impl EventStore for InMemoryEventStore
impl EventStore for InMemoryEventStore
const ENABLED: bool = true
fn append(&mut self, event: NetEvent)
fn events(&self) -> &[NetEvent]
fn size(&self) -> usize
fn is_empty(&self) -> bool
Source§const CAPTURES_TOKENS: bool = false
const CAPTURES_TOKENS: bool = false
Whether this store wants token payloads attached to
TokenAdded /
TokenRemoved events. Defaults to false so existing implementations
opt in explicitly (debug-aware stores in libpetri-debug).Auto Trait Implementations§
impl Freeze for InMemoryEventStore
impl !RefUnwindSafe for InMemoryEventStore
impl Send for InMemoryEventStore
impl Sync for InMemoryEventStore
impl Unpin for InMemoryEventStore
impl UnsafeUnpin for InMemoryEventStore
impl !UnwindSafe for InMemoryEventStore
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