pub struct MemoryCheckpointStore { /* private fields */ }Expand description
In-memory checkpoint store (for testing and temporary storage)
Implementations§
Trait Implementations§
Source§impl CheckpointStore for MemoryCheckpointStore
impl CheckpointStore for MemoryCheckpointStore
Source§fn save<'life0, 'life1, 'async_trait>(
&'life0 self,
checkpoint: &'life1 Checkpoint,
) -> Pin<Box<dyn Future<Output = DagrsResult<()>> + Send + 'async_trait>>where
Self: 'async_trait,
'life0: 'async_trait,
'life1: 'async_trait,
fn save<'life0, 'life1, 'async_trait>(
&'life0 self,
checkpoint: &'life1 Checkpoint,
) -> Pin<Box<dyn Future<Output = DagrsResult<()>> + Send + 'async_trait>>where
Self: 'async_trait,
'life0: 'async_trait,
'life1: 'async_trait,
Save a checkpoint
Source§fn load<'life0, 'life1, 'async_trait>(
&'life0 self,
id: &'life1 CheckpointId,
) -> Pin<Box<dyn Future<Output = DagrsResult<Checkpoint>> + Send + 'async_trait>>where
Self: 'async_trait,
'life0: 'async_trait,
'life1: 'async_trait,
fn load<'life0, 'life1, 'async_trait>(
&'life0 self,
id: &'life1 CheckpointId,
) -> Pin<Box<dyn Future<Output = DagrsResult<Checkpoint>> + Send + 'async_trait>>where
Self: 'async_trait,
'life0: 'async_trait,
'life1: 'async_trait,
Load a checkpoint by ID
Source§fn delete<'life0, 'life1, 'async_trait>(
&'life0 self,
id: &'life1 CheckpointId,
) -> Pin<Box<dyn Future<Output = DagrsResult<()>> + Send + 'async_trait>>where
Self: 'async_trait,
'life0: 'async_trait,
'life1: 'async_trait,
fn delete<'life0, 'life1, 'async_trait>(
&'life0 self,
id: &'life1 CheckpointId,
) -> Pin<Box<dyn Future<Output = DagrsResult<()>> + Send + 'async_trait>>where
Self: 'async_trait,
'life0: 'async_trait,
'life1: 'async_trait,
Delete a checkpoint
Source§fn list<'life0, 'async_trait>(
&'life0 self,
) -> Pin<Box<dyn Future<Output = DagrsResult<Vec<CheckpointId>>> + Send + 'async_trait>>where
Self: 'async_trait,
'life0: 'async_trait,
fn list<'life0, 'async_trait>(
&'life0 self,
) -> Pin<Box<dyn Future<Output = DagrsResult<Vec<CheckpointId>>> + Send + 'async_trait>>where
Self: 'async_trait,
'life0: 'async_trait,
List all checkpoint IDs
Source§fn latest<'life0, 'async_trait>(
&'life0 self,
) -> Pin<Box<dyn Future<Output = DagrsResult<Option<Checkpoint>>> + Send + 'async_trait>>where
Self: 'async_trait,
'life0: 'async_trait,
fn latest<'life0, 'async_trait>(
&'life0 self,
) -> Pin<Box<dyn Future<Output = DagrsResult<Option<Checkpoint>>> + Send + 'async_trait>>where
Self: 'async_trait,
'life0: 'async_trait,
Get the latest checkpoint
Source§impl Default for MemoryCheckpointStore
impl Default for MemoryCheckpointStore
Source§fn default() -> MemoryCheckpointStore
fn default() -> MemoryCheckpointStore
Returns the “default value” for a type. Read more
Auto Trait Implementations§
impl !Freeze for MemoryCheckpointStore
impl RefUnwindSafe for MemoryCheckpointStore
impl Send for MemoryCheckpointStore
impl Sync for MemoryCheckpointStore
impl Unpin for MemoryCheckpointStore
impl UnsafeUnpin for MemoryCheckpointStore
impl UnwindSafe for MemoryCheckpointStore
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