pub struct ValkeyCoordinatedStateStore { /* private fields */ }Implementations§
Trait Implementations§
Source§impl Clone for ValkeyCoordinatedStateStore
impl Clone for ValkeyCoordinatedStateStore
Source§fn clone(&self) -> ValkeyCoordinatedStateStore
fn clone(&self) -> ValkeyCoordinatedStateStore
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 CoordinatedStateStore for ValkeyCoordinatedStateStore
impl CoordinatedStateStore for ValkeyCoordinatedStateStore
type Error = ValkeyStoreError
async fn load_or_initialize( &self, job_id: &str, initial_state: JobState, ) -> Result<CoordinatedRuntimeState, Self::Error>
async fn save_state( &self, job_id: &str, revision: u64, state: &JobState, ) -> Result<bool, Self::Error>
async fn reclaim_inflight( &self, job_id: &str, resource_id: &str, lease_config: CoordinatedLeaseConfig, ) -> Result<Option<CoordinatedClaim>, Self::Error>
async fn claim_trigger( &self, job_id: &str, resource_id: &str, revision: u64, trigger: CoordinatedPendingTrigger, next_state: &JobState, lease_config: CoordinatedLeaseConfig, ) -> Result<Option<CoordinatedClaim>, Self::Error>
async fn renew( &self, lease: &ExecutionLease, lease_config: CoordinatedLeaseConfig, ) -> Result<ExecutionGuardRenewal, Self::Error>
async fn complete( &self, job_id: &str, revision: u64, lease: &ExecutionLease, state: &JobState, ) -> Result<bool, Self::Error>
async fn delete(&self, job_id: &str) -> Result<(), Self::Error>
async fn pause(&self, job_id: &str) -> Result<bool, Self::Error>
async fn resume(&self, job_id: &str) -> Result<bool, Self::Error>
fn classify_store_error(error: &Self::Error) -> StoreErrorKindwhere
Self: Sized,
fn classify_guard_error(error: &Self::Error) -> ExecutionGuardErrorKindwhere
Self: Sized,
Auto Trait Implementations§
impl Freeze for ValkeyCoordinatedStateStore
impl !RefUnwindSafe for ValkeyCoordinatedStateStore
impl Send for ValkeyCoordinatedStateStore
impl Sync for ValkeyCoordinatedStateStore
impl Unpin for ValkeyCoordinatedStateStore
impl UnsafeUnpin for ValkeyCoordinatedStateStore
impl !UnwindSafe for ValkeyCoordinatedStateStore
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