pub struct InMemoryCheckpointStore { /* private fields */ }Implementations§
Source§impl InMemoryCheckpointStore
impl InMemoryCheckpointStore
pub fn new() -> Self
pub fn save_checkpoint(&self, checkpoint: Checkpoint) -> CheckpointResult<()>
Trait Implementations§
Source§impl CheckpointStore for InMemoryCheckpointStore
impl CheckpointStore for InMemoryCheckpointStore
fn create_checkpoint(&self, checkpoint: Checkpoint) -> CheckpointResult<bool>
fn load_checkpoint( &self, checkpoint_key: &str, ) -> CheckpointResult<Option<Checkpoint>>
fn claim_checkpoint( &self, checkpoint_key: &str, cycle_index: u64, claim_token: &str, lease_expires_at_ms: u64, now_ms: u64, claim_mode: ClaimMode, ) -> CheckpointResult<Option<Checkpoint>>
fn progress_checkpoint( &self, checkpoint: Checkpoint, claim_token: &str, expected_revision: u64, ) -> CheckpointResult<bool>
fn suspend_checkpoint( &self, checkpoint: Checkpoint, claim_token: &str, expected_revision: u64, ) -> CheckpointResult<bool>
fn commit_checkpoint( &self, checkpoint: Checkpoint, claim_token: &str, expected_revision: u64, ) -> CheckpointResult<bool>
fn finalize_checkpoint( &self, checkpoint: Checkpoint, expected_revision: u64, ) -> CheckpointResult<bool>
fn finalize_claimed_checkpoint( &self, checkpoint: Checkpoint, claim_token: &str, expected_revision: u64, ) -> CheckpointResult<bool>
fn renew_checkpoint_claim( &self, checkpoint_key: &str, claim_token: &str, lease_expires_at_ms: u64, now_ms: u64, ) -> CheckpointResult<bool>
fn acknowledge_terminal( &self, checkpoint_key: &str, expected_revision: u64, ) -> CheckpointResult<bool>
fn record_event_delivery( &self, checkpoint_key: &str, claim_token: Option<&str>, expected_revision: u64, event_id: &str, payload_digest: &str, cursor: EventCursor, ) -> CheckpointResult<bool>
fn delete_checkpoint(&self, checkpoint_key: &str) -> CheckpointResult<()>
fn list_checkpoints(&self) -> CheckpointResult<Vec<String>>
Source§impl Clone for InMemoryCheckpointStore
impl Clone for InMemoryCheckpointStore
Source§fn clone(&self) -> InMemoryCheckpointStore
fn clone(&self) -> InMemoryCheckpointStore
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 InMemoryCheckpointStore
impl Debug for InMemoryCheckpointStore
Source§impl Default for InMemoryCheckpointStore
impl Default for InMemoryCheckpointStore
Source§fn default() -> InMemoryCheckpointStore
fn default() -> InMemoryCheckpointStore
Returns the “default value” for a type. Read more
Auto Trait Implementations§
impl Freeze for InMemoryCheckpointStore
impl RefUnwindSafe for InMemoryCheckpointStore
impl Send for InMemoryCheckpointStore
impl Sync for InMemoryCheckpointStore
impl Unpin for InMemoryCheckpointStore
impl UnsafeUnpin for InMemoryCheckpointStore
impl UnwindSafe for InMemoryCheckpointStore
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.