pub struct MemorySagaOutbox<S, C>{ /* private fields */ }Expand description
In-memory saga state and action outbox sharing one atomic commit boundary.
Implementations§
Source§impl<S, C> MemorySagaOutbox<S, C>
impl<S, C> MemorySagaOutbox<S, C>
Sourcepub const fn saga_store(&self) -> &MemorySagaStore<S>
pub const fn saga_store(&self) -> &MemorySagaStore<S>
Returns the saga-state view.
Sourcepub const fn action_store(&self) -> &MemorySagaActionStore<C>
pub const fn action_store(&self) -> &MemorySagaActionStore<C>
Returns the action and timer view.
Trait Implementations§
Source§impl<S: Debug, C> Debug for MemorySagaOutbox<S, C>
impl<S: Debug, C> Debug for MemorySagaOutbox<S, C>
Source§impl<S, C> Default for MemorySagaOutbox<S, C>
impl<S, C> Default for MemorySagaOutbox<S, C>
Source§impl<S, C> TransactionalSagaOutbox<S, C> for MemorySagaOutbox<S, C>
impl<S, C> TransactionalSagaOutbox<S, C> for MemorySagaOutbox<S, C>
Source§fn commit_transition<'a>(
&'a self,
saga_id: &'a SagaId,
expected: ExpectedSagaVersion,
saga: S,
transition: MessageMetadata,
actions: Vec<SagaAction<C>>,
) -> BoxFuture<'a, SoapResult<SagaCommitResult>>
fn commit_transition<'a>( &'a self, saga_id: &'a SagaId, expected: ExpectedSagaVersion, saga: S, transition: MessageMetadata, actions: Vec<SagaAction<C>>, ) -> BoxFuture<'a, SoapResult<SagaCommitResult>>
Saves one state transition and its actions atomically.
Auto Trait Implementations§
impl<S, C> !Freeze for MemorySagaOutbox<S, C>
impl<S, C> RefUnwindSafe for MemorySagaOutbox<S, C>
impl<S, C> Send for MemorySagaOutbox<S, C>where
S: Send,
impl<S, C> Sync for MemorySagaOutbox<S, C>where
S: Send,
impl<S, C> Unpin for MemorySagaOutbox<S, C>
impl<S, C> UnsafeUnpin for MemorySagaOutbox<S, C>
impl<S, C> UnwindSafe for MemorySagaOutbox<S, C>
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