pub struct SqliteCheckpointStoreV2 { /* private fields */ }Implementations§
Source§impl SqliteCheckpointStoreV2
impl SqliteCheckpointStoreV2
pub fn new(path: impl AsRef<Path>) -> CheckpointResult<Self>
pub fn location(&self) -> &Path
pub fn save_checkpoint_v2( &self, checkpoint: CheckpointV2, ) -> CheckpointResult<()>
Trait Implementations§
Source§impl CheckpointStoreV2 for SqliteCheckpointStoreV2
impl CheckpointStoreV2 for SqliteCheckpointStoreV2
fn create_checkpoint_v2( &self, checkpoint: CheckpointV2, ) -> CheckpointResult<bool>
fn load_checkpoint_v2( &self, checkpoint_key: &str, ) -> CheckpointResult<Option<CheckpointV2>>
fn claim_checkpoint_v2( &self, checkpoint_key: &str, cycle_index: u64, claim_token: &str, lease_expires_at_ms: u64, now_ms: u64, claim_mode: ClaimMode, ) -> CheckpointResult<Option<CheckpointV2>>
fn progress_checkpoint_v2( &self, checkpoint: CheckpointV2, claim_token: &str, expected_revision: u64, ) -> CheckpointResult<bool>
fn suspend_checkpoint_v2( &self, checkpoint: CheckpointV2, claim_token: &str, expected_revision: u64, ) -> CheckpointResult<bool>
fn commit_checkpoint_v2( &self, checkpoint: CheckpointV2, claim_token: &str, expected_revision: u64, ) -> CheckpointResult<bool>
fn finalize_claimed_v2( &self, checkpoint: CheckpointV2, claim_token: &str, expected_revision: u64, ) -> CheckpointResult<bool>
fn finalize_checkpoint_v2( &self, checkpoint: CheckpointV2, expected_revision: u64, ) -> CheckpointResult<bool>
fn renew_checkpoint_claim_v2( &self, checkpoint_key: &str, claim_token: &str, lease_expires_at_ms: u64, now_ms: u64, ) -> CheckpointResult<bool>
fn acknowledge_terminal_v2( &self, checkpoint_key: &str, expected_revision: u64, ) -> CheckpointResult<bool>
fn record_event_delivery_v2( &self, checkpoint_key: &str, claim_token: Option<&str>, expected_revision: u64, event_id: &str, payload_digest: &str, cursor: EventCursor, ) -> CheckpointResult<bool>
fn delete_checkpoint_v2(&self, checkpoint_key: &str) -> CheckpointResult<()>
fn list_checkpoints_v2(&self) -> CheckpointResult<Vec<String>>
fn claim_checkpoint_v2_continue( &self, checkpoint_key: &str, cycle_index: u64, claim_token: &str, lease_expires_at_ms: u64, now_ms: u64, ) -> CheckpointResult<Option<CheckpointV2>>
fn claim_checkpoint_v2_recovery( &self, checkpoint_key: &str, cycle_index: u64, claim_token: &str, lease_expires_at_ms: u64, now_ms: u64, ) -> CheckpointResult<Option<CheckpointV2>>
Auto Trait Implementations§
impl !Freeze for SqliteCheckpointStoreV2
impl RefUnwindSafe for SqliteCheckpointStoreV2
impl Send for SqliteCheckpointStoreV2
impl Sync for SqliteCheckpointStoreV2
impl Unpin for SqliteCheckpointStoreV2
impl UnsafeUnpin for SqliteCheckpointStoreV2
impl UnwindSafe for SqliteCheckpointStoreV2
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
Source§impl<T> Instrument for T
impl<T> Instrument for T
Source§fn instrument(self, span: Span) -> Instrumented<Self>
fn instrument(self, span: Span) -> Instrumented<Self>
Source§fn in_current_span(self) -> Instrumented<Self>
fn in_current_span(self) -> Instrumented<Self>
Source§impl<T> IntoEither for T
impl<T> IntoEither for T
Source§fn into_either(self, into_left: bool) -> Either<Self, Self>
fn into_either(self, into_left: bool) -> Either<Self, Self>
Converts
self into a Left variant of Either<Self, Self>
if into_left is true.
Converts self into a Right variant of Either<Self, Self>
otherwise. Read moreSource§fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
Converts
self into a Left variant of Either<Self, Self>
if into_left(&self) returns true.
Converts self into a Right variant of Either<Self, Self>
otherwise. Read moreCreates a shared type from an unshared type.