pub struct InMemoryPersistence { /* private fields */ }Expand description
Simple in-memory persistence implementation.
This implementation stores a single state value in memory. It’s suitable for testing and non-persistent scenarios where state doesn’t need to survive process restarts.
Implementations§
Trait Implementations§
Source§impl Clone for InMemoryPersistence
impl Clone for InMemoryPersistence
Source§fn clone(&self) -> InMemoryPersistence
fn clone(&self) -> InMemoryPersistence
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 Debug for InMemoryPersistence
impl Debug for InMemoryPersistence
Source§impl Default for InMemoryPersistence
impl Default for InMemoryPersistence
Source§impl PersistenceLayer for InMemoryPersistence
impl PersistenceLayer for InMemoryPersistence
Auto Trait Implementations§
impl !RefUnwindSafe for InMemoryPersistence
impl !UnwindSafe for InMemoryPersistence
impl Freeze for InMemoryPersistence
impl Send for InMemoryPersistence
impl Sync for InMemoryPersistence
impl Unpin for InMemoryPersistence
impl UnsafeUnpin for InMemoryPersistence
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