pub struct NoopSnapshotStore;Expand description
A SnapshotStore that never persists anything.
Every load returns None (full replay); every save succeeds silently.
§⚠️ Data loss warning
NoopSnapshotStore discards every snapshot silently. Processes built
with this store perform full event replay on every state read. Do not use
in production — bind a SlateDbStore::as_snapshot_store() instead.
The SnapshotStore implementation is only compiled when the testing
feature is enabled or inside #[cfg(test)]. Production binaries must call
EngineBuilder::with_snapshot_store with a durable backend.
Trait Implementations§
Source§impl Clone for NoopSnapshotStore
impl Clone for NoopSnapshotStore
Source§fn clone(&self) -> NoopSnapshotStore
fn clone(&self) -> NoopSnapshotStore
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 moreimpl Copy for NoopSnapshotStore
Source§impl Debug for NoopSnapshotStore
impl Debug for NoopSnapshotStore
Source§impl Default for NoopSnapshotStore
impl Default for NoopSnapshotStore
Source§fn default() -> NoopSnapshotStore
fn default() -> NoopSnapshotStore
Returns the “default value” for a type. Read more
Auto Trait Implementations§
impl Freeze for NoopSnapshotStore
impl RefUnwindSafe for NoopSnapshotStore
impl Send for NoopSnapshotStore
impl Sync for NoopSnapshotStore
impl Unpin for NoopSnapshotStore
impl UnsafeUnpin for NoopSnapshotStore
impl UnwindSafe for NoopSnapshotStore
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