pub struct PersistenceState {
pub backend: Arc<dyn PersistenceBackend>,
pub retention_ms: u64,
}Expand description
State stored in the builder’s Extensions TypeMap.
Both .persist() (on RecordRegistrar) and AimDbQueryExt (on AimDb<R>)
retrieve this via extensions().get::<PersistenceState>().
Fields§
§backend: Arc<dyn PersistenceBackend>The configured persistence backend.
retention_ms: u64How long to keep persisted values before automatic cleanup.
Auto Trait Implementations§
impl Freeze for PersistenceState
impl !RefUnwindSafe for PersistenceState
impl Send for PersistenceState
impl Sync for PersistenceState
impl Unpin for PersistenceState
impl UnsafeUnpin for PersistenceState
impl !UnwindSafe for PersistenceState
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