pub struct MemorySnapshotStore { /* private fields */ }Expand description
In-memory snapshot-store reference implementation.
Implementations§
Trait Implementations§
Source§impl Debug for MemorySnapshotStore
impl Debug for MemorySnapshotStore
Source§impl Default for MemorySnapshotStore
impl Default for MemorySnapshotStore
Source§fn default() -> MemorySnapshotStore
fn default() -> MemorySnapshotStore
Returns the “default value” for a type. Read more
Source§impl SnapshotStore for MemorySnapshotStore
impl SnapshotStore for MemorySnapshotStore
Source§fn load<'life0, 'life1, 'life2, 'async_trait>(
&'life0 self,
persistence_id: &'life1 PersistenceId,
criteria: &'life2 SnapshotCriteria,
) -> Pin<Box<dyn Future<Output = PersistenceResult<Option<SelectedSnapshot>>> + Send + 'async_trait>>where
Self: 'async_trait,
'life0: 'async_trait,
'life1: 'async_trait,
'life2: 'async_trait,
fn load<'life0, 'life1, 'life2, 'async_trait>(
&'life0 self,
persistence_id: &'life1 PersistenceId,
criteria: &'life2 SnapshotCriteria,
) -> Pin<Box<dyn Future<Output = PersistenceResult<Option<SelectedSnapshot>>> + Send + 'async_trait>>where
Self: 'async_trait,
'life0: 'async_trait,
'life1: 'async_trait,
'life2: 'async_trait,
Loads the latest snapshot that satisfies
criteria. Read moreSource§fn save<'life0, 'async_trait>(
&'life0 self,
metadata: SnapshotMetadata,
adapter_manifest: String,
state: SerializedPayload,
) -> Pin<Box<dyn Future<Output = PersistenceResult<()>> + Send + 'async_trait>>where
Self: 'async_trait,
'life0: 'async_trait,
fn save<'life0, 'async_trait>(
&'life0 self,
metadata: SnapshotMetadata,
adapter_manifest: String,
state: SerializedPayload,
) -> Pin<Box<dyn Future<Output = PersistenceResult<()>> + Send + 'async_trait>>where
Self: 'async_trait,
'life0: 'async_trait,
Saves a snapshot. A save at an existing sequence number replaces the
previously observable snapshot at that sequence number.
Source§fn delete<'life0, 'async_trait>(
&'life0 self,
metadata: SnapshotMetadata,
) -> Pin<Box<dyn Future<Output = PersistenceResult<()>> + Send + 'async_trait>>where
Self: 'async_trait,
'life0: 'async_trait,
fn delete<'life0, 'async_trait>(
&'life0 self,
metadata: SnapshotMetadata,
) -> Pin<Box<dyn Future<Output = PersistenceResult<()>> + Send + 'async_trait>>where
Self: 'async_trait,
'life0: 'async_trait,
Deletes the snapshot with exactly matching metadata, if present.
Source§fn delete_matching<'life0, 'life1, 'life2, 'async_trait>(
&'life0 self,
persistence_id: &'life1 PersistenceId,
criteria: &'life2 SnapshotCriteria,
) -> Pin<Box<dyn Future<Output = PersistenceResult<()>> + Send + 'async_trait>>where
Self: 'async_trait,
'life0: 'async_trait,
'life1: 'async_trait,
'life2: 'async_trait,
fn delete_matching<'life0, 'life1, 'life2, 'async_trait>(
&'life0 self,
persistence_id: &'life1 PersistenceId,
criteria: &'life2 SnapshotCriteria,
) -> Pin<Box<dyn Future<Output = PersistenceResult<()>> + Send + 'async_trait>>where
Self: 'async_trait,
'life0: 'async_trait,
'life1: 'async_trait,
'life2: 'async_trait,
Deletes every snapshot for
persistence_id matching the criteria.Auto Trait Implementations§
impl !Freeze for MemorySnapshotStore
impl RefUnwindSafe for MemorySnapshotStore
impl Send for MemorySnapshotStore
impl Sync for MemorySnapshotStore
impl Unpin for MemorySnapshotStore
impl UnsafeUnpin for MemorySnapshotStore
impl UnwindSafe for MemorySnapshotStore
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
Source§impl<T> Instrument for T
impl<T> Instrument for T
Source§fn instrument(self, span: Span) -> Instrumented<Self>
fn instrument(self, span: Span) -> Instrumented<Self>
Source§fn in_current_span(self) -> Instrumented<Self>
fn in_current_span(self) -> Instrumented<Self>
Source§impl<S> IntoEventHandlerResult<S> for S
impl<S> IntoEventHandlerResult<S> for S
Source§fn into_event_handler_result(self) -> Result<S, PersistenceError>
fn into_event_handler_result(self) -> Result<S, PersistenceError>
Converts this handler output into the runtime result.
Source§impl<T> Message for T
impl<T> Message for T
Source§fn from_boxed(m: BoxedMessage) -> Result<Self, BoxedDowncastErr>
fn from_boxed(m: BoxedMessage) -> Result<Self, BoxedDowncastErr>
Convert a BoxedMessage to this concrete type
Source§fn box_message(self, pid: &ActorId) -> Result<BoxedMessage, BoxedDowncastErr>
fn box_message(self, pid: &ActorId) -> Result<BoxedMessage, BoxedDowncastErr>
Convert this message to a BoxedMessage