pub struct SqliteCheckpointStore { /* private fields */ }Expand description
SQLite-backed checkpoint store.
Implementations§
Trait Implementations§
Source§impl CheckpointStore for SqliteCheckpointStore
impl CheckpointStore for SqliteCheckpointStore
Source§fn save(
&self,
checkpoint: RunCheckpoint,
latest_journal_seq: u64,
) -> Result<CheckpointSaveOutcome, AgentError>
fn save( &self, checkpoint: RunCheckpoint, latest_journal_seq: u64, ) -> Result<CheckpointSaveOutcome, AgentError>
Saves checkpoint accelerator data for a run at a journal sequence.
Implementations write or replace checkpoint accelerator data for the run without
changing journal truth.
Source§fn load_latest(
&self,
run_id: &RunId,
) -> Result<Option<RunCheckpoint>, AgentError>
fn load_latest( &self, run_id: &RunId, ) -> Result<Option<RunCheckpoint>, AgentError>
Loads the latest checkpoint accelerator data for a run.
Implementations read checkpoint storage for the requested run and return matching
checkpoint data without altering durable journal truth.
Source§fn load_at_or_before(
&self,
run_id: &RunId,
cursor: &JournalCursor,
) -> Result<Option<RunCheckpoint>, AgentError>
fn load_at_or_before( &self, run_id: &RunId, cursor: &JournalCursor, ) -> Result<Option<RunCheckpoint>, AgentError>
Loads checkpoint accelerator data at or before the requested journal
cursor.
Implementations read checkpoint storage for the requested run and return matching
checkpoint data without altering durable journal truth.
Source§fn prune(
&self,
run_id: &RunId,
policy: CheckpointPrunePolicy,
) -> Result<CheckpointPruneReport, AgentError>
fn prune( &self, run_id: &RunId, policy: CheckpointPrunePolicy, ) -> Result<CheckpointPruneReport, AgentError>
Prunes checkpoint accelerator data according to retention policy.
Implementations remove checkpoint accelerator entries according to retention policy
without deleting journal truth.
Source§impl Clone for SqliteCheckpointStore
impl Clone for SqliteCheckpointStore
Source§fn clone(&self) -> SqliteCheckpointStore
fn clone(&self) -> SqliteCheckpointStore
Returns a duplicate of the value. Read more
1.0.0 (const: unstable) · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source. Read moreAuto Trait Implementations§
impl Freeze for SqliteCheckpointStore
impl RefUnwindSafe for SqliteCheckpointStore
impl Send for SqliteCheckpointStore
impl Sync for SqliteCheckpointStore
impl Unpin for SqliteCheckpointStore
impl UnsafeUnpin for SqliteCheckpointStore
impl UnwindSafe for SqliteCheckpointStore
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