pub struct MemorySagaStore<S> { /* private fields */ }Expand description
In-memory application-defined saga state.
Implementations§
Source§impl<S> MemorySagaStore<S>
impl<S> MemorySagaStore<S>
Trait Implementations§
Source§impl<S: Debug> Debug for MemorySagaStore<S>
impl<S: Debug> Debug for MemorySagaStore<S>
Source§impl<S: Default> Default for MemorySagaStore<S>
impl<S: Default> Default for MemorySagaStore<S>
Source§fn default() -> MemorySagaStore<S>
fn default() -> MemorySagaStore<S>
Returns the “default value” for a type. Read more
Source§impl<S> SagaStore<S> for MemorySagaStore<S>
impl<S> SagaStore<S> for MemorySagaStore<S>
Source§fn load<'a>(
&'a self,
id: &'a SagaId,
) -> BoxFuture<'a, SoapResult<Option<StoredSaga<S>>>>
fn load<'a>( &'a self, id: &'a SagaId, ) -> BoxFuture<'a, SoapResult<Option<StoredSaga<S>>>>
Loads saga state by identity.
Source§fn save<'a>(
&'a self,
id: &'a SagaId,
expected: ExpectedSagaVersion,
saga: S,
) -> BoxFuture<'a, SoapResult<SagaVersion>>
fn save<'a>( &'a self, id: &'a SagaId, expected: ExpectedSagaVersion, saga: S, ) -> BoxFuture<'a, SoapResult<SagaVersion>>
Inserts or replaces saga state if its version expectation is met.
Auto Trait Implementations§
impl<S> !Freeze for MemorySagaStore<S>
impl<S> RefUnwindSafe for MemorySagaStore<S>
impl<S> Send for MemorySagaStore<S>where
S: Send,
impl<S> Sync for MemorySagaStore<S>where
S: Send,
impl<S> Unpin for MemorySagaStore<S>where
S: Unpin,
impl<S> UnsafeUnpin for MemorySagaStore<S>
impl<S> UnwindSafe for MemorySagaStore<S>
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