pub struct InMemoryCheckpointStoreV2 { /* private fields */ }Implementations§
Source§impl InMemoryCheckpointStoreV2
impl InMemoryCheckpointStoreV2
pub fn new() -> Self
pub fn save_checkpoint_v2( &self, checkpoint: CheckpointV2, ) -> CheckpointResult<()>
Trait Implementations§
Source§impl CheckpointStoreV2 for InMemoryCheckpointStoreV2
impl CheckpointStoreV2 for InMemoryCheckpointStoreV2
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_checkpoint_v2( &self, checkpoint: CheckpointV2, expected_revision: u64, ) -> CheckpointResult<bool>
fn finalize_claimed_v2( &self, checkpoint: CheckpointV2, claim_token: &str, 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>>
Source§impl Clone for InMemoryCheckpointStoreV2
impl Clone for InMemoryCheckpointStoreV2
Source§fn clone(&self) -> InMemoryCheckpointStoreV2
fn clone(&self) -> InMemoryCheckpointStoreV2
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 moreSource§impl Debug for InMemoryCheckpointStoreV2
impl Debug for InMemoryCheckpointStoreV2
Source§impl Default for InMemoryCheckpointStoreV2
impl Default for InMemoryCheckpointStoreV2
Source§fn default() -> InMemoryCheckpointStoreV2
fn default() -> InMemoryCheckpointStoreV2
Returns the “default value” for a type. Read more
Auto Trait Implementations§
impl Freeze for InMemoryCheckpointStoreV2
impl RefUnwindSafe for InMemoryCheckpointStoreV2
impl Send for InMemoryCheckpointStoreV2
impl Sync for InMemoryCheckpointStoreV2
impl Unpin for InMemoryCheckpointStoreV2
impl UnsafeUnpin for InMemoryCheckpointStoreV2
impl UnwindSafe for InMemoryCheckpointStoreV2
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> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
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.