pub struct FileCheckpointStore { /* private fields */ }Expand description
Filesystem-backed checkpoint accelerator store.
Implementations§
Trait Implementations§
Source§impl CheckpointStore for FileCheckpointStore
impl CheckpointStore for FileCheckpointStore
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 FileCheckpointStore
impl Clone for FileCheckpointStore
Source§fn clone(&self) -> FileCheckpointStore
fn clone(&self) -> FileCheckpointStore
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 FileCheckpointStore
impl RefUnwindSafe for FileCheckpointStore
impl Send for FileCheckpointStore
impl Sync for FileCheckpointStore
impl Unpin for FileCheckpointStore
impl UnsafeUnpin for FileCheckpointStore
impl UnwindSafe for FileCheckpointStore
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