pub struct RedisCheckpointStore { /* private fields */ }Implementations§
Trait Implementations§
Source§impl CheckpointStore for RedisCheckpointStore
impl CheckpointStore for RedisCheckpointStore
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_claimed_checkpoint( &self, checkpoint: Checkpoint, claim_token: &str, expected_revision: u64, ) -> CheckpointResult<bool>
fn finalize_checkpoint( &self, checkpoint: Checkpoint, 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>>
Auto Trait Implementations§
impl !Freeze for RedisCheckpointStore
impl RefUnwindSafe for RedisCheckpointStore
impl Send for RedisCheckpointStore
impl Sync for RedisCheckpointStore
impl Unpin for RedisCheckpointStore
impl UnsafeUnpin for RedisCheckpointStore
impl UnwindSafe for RedisCheckpointStore
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.