pub struct NoopCoordinatedStateStore;Trait Implementations§
Source§impl Clone for NoopCoordinatedStateStore
impl Clone for NoopCoordinatedStateStore
Source§fn clone(&self) -> NoopCoordinatedStateStore
fn clone(&self) -> NoopCoordinatedStateStore
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 NoopCoordinatedStateStore
impl CoordinatedStateStore for NoopCoordinatedStateStore
type Error = Infallible
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>
fn classify_store_error(_error: &Self::Error) -> StoreErrorKindwhere
Self: Sized,
fn classify_guard_error(_error: &Self::Error) -> ExecutionGuardErrorKindwhere
Self: Sized,
Source§impl Debug for NoopCoordinatedStateStore
impl Debug for NoopCoordinatedStateStore
Source§impl Default for NoopCoordinatedStateStore
impl Default for NoopCoordinatedStateStore
Source§fn default() -> NoopCoordinatedStateStore
fn default() -> NoopCoordinatedStateStore
Returns the “default value” for a type. Read more
impl Copy for NoopCoordinatedStateStore
Auto Trait Implementations§
impl Freeze for NoopCoordinatedStateStore
impl RefUnwindSafe for NoopCoordinatedStateStore
impl Send for NoopCoordinatedStateStore
impl Sync for NoopCoordinatedStateStore
impl Unpin for NoopCoordinatedStateStore
impl UnsafeUnpin for NoopCoordinatedStateStore
impl UnwindSafe for NoopCoordinatedStateStore
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