pub struct InMemoryRecordManager { /* private fields */ }Expand description
In-process record manager. Suitable for tests and single-process apps.
Implementations§
Trait Implementations§
Source§impl Default for InMemoryRecordManager
impl Default for InMemoryRecordManager
Source§fn default() -> InMemoryRecordManager
fn default() -> InMemoryRecordManager
Returns the “default value” for a type. Read more
Source§impl RecordManager for InMemoryRecordManager
impl RecordManager for InMemoryRecordManager
Source§fn list_keys<'life0, 'life1, 'async_trait>(
&'life0 self,
group: &'life1 str,
) -> Pin<Box<dyn Future<Output = Result<Vec<String>>> + Send + 'async_trait>>where
Self: 'async_trait,
'life0: 'async_trait,
'life1: 'async_trait,
fn list_keys<'life0, 'life1, 'async_trait>(
&'life0 self,
group: &'life1 str,
) -> Pin<Box<dyn Future<Output = Result<Vec<String>>> + Send + 'async_trait>>where
Self: 'async_trait,
'life0: 'async_trait,
'life1: 'async_trait,
All keys currently tracked in
group. Used to detect deletions.Source§fn get_fingerprint<'life0, 'life1, 'life2, 'async_trait>(
&'life0 self,
group: &'life1 str,
key: &'life2 str,
) -> Pin<Box<dyn Future<Output = Result<Option<String>>> + Send + 'async_trait>>where
Self: 'async_trait,
'life0: 'async_trait,
'life1: 'async_trait,
'life2: 'async_trait,
fn get_fingerprint<'life0, 'life1, 'life2, 'async_trait>(
&'life0 self,
group: &'life1 str,
key: &'life2 str,
) -> Pin<Box<dyn Future<Output = Result<Option<String>>> + Send + 'async_trait>>where
Self: 'async_trait,
'life0: 'async_trait,
'life1: 'async_trait,
'life2: 'async_trait,
Look up the fingerprint stored for
(group, key), if any.Source§fn set_fingerprint<'life0, 'life1, 'life2, 'life3, 'async_trait>(
&'life0 self,
group: &'life1 str,
key: &'life2 str,
fingerprint: &'life3 str,
) -> Pin<Box<dyn Future<Output = Result<()>> + Send + 'async_trait>>where
Self: 'async_trait,
'life0: 'async_trait,
'life1: 'async_trait,
'life2: 'async_trait,
'life3: 'async_trait,
fn set_fingerprint<'life0, 'life1, 'life2, 'life3, 'async_trait>(
&'life0 self,
group: &'life1 str,
key: &'life2 str,
fingerprint: &'life3 str,
) -> Pin<Box<dyn Future<Output = Result<()>> + Send + 'async_trait>>where
Self: 'async_trait,
'life0: 'async_trait,
'life1: 'async_trait,
'life2: 'async_trait,
'life3: 'async_trait,
Record
fingerprint for (group, key). Replaces any existing.Auto Trait Implementations§
impl !Freeze for InMemoryRecordManager
impl RefUnwindSafe for InMemoryRecordManager
impl Send for InMemoryRecordManager
impl Sync for InMemoryRecordManager
impl Unpin for InMemoryRecordManager
impl UnsafeUnpin for InMemoryRecordManager
impl UnwindSafe for InMemoryRecordManager
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