pub struct InMemoryCheckpointStorage { /* private fields */ }Expand description
In-memory checkpoint storage implementation (for testing/development)
Implementations§
Trait Implementations§
Source§impl CheckpointStorage for InMemoryCheckpointStorage
impl CheckpointStorage for InMemoryCheckpointStorage
Source§fn save_checkpoint(
&self,
execution_id: ExecutionId,
checkpoint: &ExecutionCheckpoint,
) -> Result<CheckpointId, CheckpointError>
fn save_checkpoint( &self, execution_id: ExecutionId, checkpoint: &ExecutionCheckpoint, ) -> Result<CheckpointId, CheckpointError>
Save a checkpoint
Source§fn load_latest_checkpoint(
&self,
execution_id: ExecutionId,
) -> Result<Option<ExecutionCheckpoint>, CheckpointError>
fn load_latest_checkpoint( &self, execution_id: ExecutionId, ) -> Result<Option<ExecutionCheckpoint>, CheckpointError>
Load the latest checkpoint for an execution
Source§fn load_checkpoint(
&self,
checkpoint_id: CheckpointId,
) -> Result<Option<ExecutionCheckpoint>, CheckpointError>
fn load_checkpoint( &self, checkpoint_id: CheckpointId, ) -> Result<Option<ExecutionCheckpoint>, CheckpointError>
Load a specific checkpoint by ID
Source§fn list_checkpoints(
&self,
execution_id: ExecutionId,
) -> Result<Vec<CheckpointMetadata>, CheckpointError>
fn list_checkpoints( &self, execution_id: ExecutionId, ) -> Result<Vec<CheckpointMetadata>, CheckpointError>
List all checkpoints for an execution
Source§fn prune_checkpoints(
&self,
execution_id: ExecutionId,
keep_count: usize,
) -> Result<usize, CheckpointError>
fn prune_checkpoints( &self, execution_id: ExecutionId, keep_count: usize, ) -> Result<usize, CheckpointError>
Delete old checkpoints beyond retention limit
Source§fn delete_checkpoints(
&self,
execution_id: ExecutionId,
) -> Result<usize, CheckpointError>
fn delete_checkpoints( &self, execution_id: ExecutionId, ) -> Result<usize, CheckpointError>
Delete all checkpoints for an execution
Source§impl Debug for InMemoryCheckpointStorage
impl Debug for InMemoryCheckpointStorage
Source§impl Default for InMemoryCheckpointStorage
impl Default for InMemoryCheckpointStorage
Source§fn default() -> InMemoryCheckpointStorage
fn default() -> InMemoryCheckpointStorage
Returns the “default value” for a type. Read more
Auto Trait Implementations§
impl !Freeze for InMemoryCheckpointStorage
impl RefUnwindSafe for InMemoryCheckpointStorage
impl Send for InMemoryCheckpointStorage
impl Sync for InMemoryCheckpointStorage
impl Unpin for InMemoryCheckpointStorage
impl UnwindSafe for InMemoryCheckpointStorage
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