pub struct PostgresCheckpointStore { /* private fields */ }Implementations§
Source§impl PostgresCheckpointStore
impl PostgresCheckpointStore
pub fn new(client: PostgresStoreClient) -> Self
Trait Implementations§
Source§impl CheckpointStore for PostgresCheckpointStore
impl CheckpointStore for PostgresCheckpointStore
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 PostgresCheckpointStore
impl Clone for PostgresCheckpointStore
Source§fn clone(&self) -> PostgresCheckpointStore
fn clone(&self) -> PostgresCheckpointStore
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 !RefUnwindSafe for PostgresCheckpointStore
impl !UnwindSafe for PostgresCheckpointStore
impl Freeze for PostgresCheckpointStore
impl Send for PostgresCheckpointStore
impl Sync for PostgresCheckpointStore
impl Unpin for PostgresCheckpointStore
impl UnsafeUnpin for PostgresCheckpointStore
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