pub struct ResilientStateStore<S>{ /* private fields */ }Expand description
Wraps a primary store with an in-process mirror that takes over after connection-class failures.
Implementations§
Source§impl<S> ResilientStateStore<S>
impl<S> ResilientStateStore<S>
Trait Implementations§
Source§impl<S> Debug for ResilientStateStore<S>
impl<S> Debug for ResilientStateStore<S>
Source§impl<S> StateStore for ResilientStateStore<S>
impl<S> StateStore for ResilientStateStore<S>
type Error = <S as StateStore>::Error
async fn load(&self, job_id: &str) -> Result<Option<JobState>, Self::Error>
async fn save(&self, state: &JobState) -> Result<(), Self::Error>
async fn delete(&self, job_id: &str) -> Result<(), Self::Error>
async fn drain_events(&self) -> Result<Vec<StoreEvent>, Self::Error>
fn classify_error(error: &Self::Error) -> StoreErrorKindwhere
Self: Sized,
Auto Trait Implementations§
impl<S> !Freeze for ResilientStateStore<S>
impl<S> !RefUnwindSafe for ResilientStateStore<S>
impl<S> Send for ResilientStateStore<S>where
S: Send,
impl<S> Sync for ResilientStateStore<S>where
S: Send,
impl<S> Unpin for ResilientStateStore<S>where
S: Unpin,
impl<S> UnsafeUnpin for ResilientStateStore<S>where
S: UnsafeUnpin,
impl<S> UnwindSafe for ResilientStateStore<S>where
S: UnwindSafe,
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