pub struct MemoryStore { /* private fields */ }Implementations§
Trait Implementations§
Source§impl Default for MemoryStore
impl Default for MemoryStore
Source§fn default() -> MemoryStore
fn default() -> MemoryStore
Returns the “default value” for a type. Read more
Source§impl Store for MemoryStore
impl Store for MemoryStore
fn load_state<'life0, 'async_trait>(
&'life0 self,
) -> Pin<Box<dyn Future<Output = Result<PersistedState>> + Send + 'async_trait>>where
Self: 'async_trait,
'life0: 'async_trait,
fn save_state<'life0, 'life1, 'async_trait>(
&'life0 self,
state: &'life1 PersistedState,
) -> Pin<Box<dyn Future<Output = Result<()>> + Send + 'async_trait>>where
Self: 'async_trait,
'life0: 'async_trait,
'life1: 'async_trait,
Source§fn save_incremental<'life0, 'life1, 'life2, 'async_trait>(
&'life0 self,
state: &'life1 PersistedState,
dirty: &'life2 DirtyFlags,
) -> Pin<Box<dyn Future<Output = Result<()>> + Send + 'async_trait>>where
Self: 'async_trait,
'life0: 'async_trait,
'life1: 'async_trait,
'life2: 'async_trait,
fn save_incremental<'life0, 'life1, 'life2, 'async_trait>(
&'life0 self,
state: &'life1 PersistedState,
dirty: &'life2 DirtyFlags,
) -> Pin<Box<dyn Future<Output = Result<()>> + Send + 'async_trait>>where
Self: 'async_trait,
'life0: 'async_trait,
'life1: 'async_trait,
'life2: 'async_trait,
Save only the sections indicated by
dirty. Read moreSource§fn index_manifest_for_search<'life0, 'life1, 'async_trait>(
&'life0 self,
_manifest: &'life1 ManifestV1,
) -> Pin<Box<dyn Future<Output = Result<()>> + Send + 'async_trait>>where
Self: 'async_trait,
'life0: 'async_trait,
'life1: 'async_trait,
fn index_manifest_for_search<'life0, 'life1, 'async_trait>(
&'life0 self,
_manifest: &'life1 ManifestV1,
) -> Pin<Box<dyn Future<Output = Result<()>> + Send + 'async_trait>>where
Self: 'async_trait,
'life0: 'async_trait,
'life1: 'async_trait,
Write-through: UPSERT all items from
manifest into the persistent
full-text search index immediately, outside any state lock. This
eliminates the need for the O(N) snapshot+clear+repopulate on every
persist_state call. Read moreRemove all search-index entries for
share_id from the persistent
store. Called on unsubscribe and share deletion. Read moreAuto Trait Implementations§
impl !Freeze for MemoryStore
impl !RefUnwindSafe for MemoryStore
impl Send for MemoryStore
impl Sync for MemoryStore
impl Unpin for MemoryStore
impl UnsafeUnpin for MemoryStore
impl UnwindSafe for MemoryStore
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