pub struct InMemorySnapshotStore { /* private fields */ }Implementations§
Source§impl InMemorySnapshotStore
impl InMemorySnapshotStore
pub fn new() -> Arc<InMemorySnapshotStore> ⓘ
Trait Implementations§
Source§impl Default for InMemorySnapshotStore
impl Default for InMemorySnapshotStore
Source§fn default() -> InMemorySnapshotStore
fn default() -> InMemorySnapshotStore
Returns the “default value” for a type. Read more
Source§impl SnapshotStore for InMemorySnapshotStore
impl SnapshotStore for InMemorySnapshotStore
fn save<'life0, 'async_trait>(
&'life0 self,
meta: SnapshotMetadata,
payload: Vec<u8>,
) -> Pin<Box<dyn Future<Output = ()> + Send + 'async_trait>>where
'life0: 'async_trait,
InMemorySnapshotStore: 'async_trait,
fn load<'life0, 'life1, 'async_trait>(
&'life0 self,
pid: &'life1 str,
) -> Pin<Box<dyn Future<Output = Option<(SnapshotMetadata, Vec<u8>)>> + Send + 'async_trait>>where
'life0: 'async_trait,
'life1: 'async_trait,
InMemorySnapshotStore: 'async_trait,
fn delete<'life0, 'life1, 'async_trait>(
&'life0 self,
pid: &'life1 str,
to_sequence_nr: u64,
) -> Pin<Box<dyn Future<Output = ()> + Send + 'async_trait>>where
'life0: 'async_trait,
'life1: 'async_trait,
InMemorySnapshotStore: 'async_trait,
Auto Trait Implementations§
impl !Freeze for InMemorySnapshotStore
impl !RefUnwindSafe for InMemorySnapshotStore
impl Send for InMemorySnapshotStore
impl Sync for InMemorySnapshotStore
impl Unpin for InMemorySnapshotStore
impl UnsafeUnpin for InMemorySnapshotStore
impl UnwindSafe for InMemorySnapshotStore
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