pub struct MemoryEventOutbox<E, M> { /* private fields */ }Expand description
In-memory event store and outbox sharing one atomic commit boundary.
Implementations§
Source§impl<E, M> MemoryEventOutbox<E, M>
impl<E, M> MemoryEventOutbox<E, M>
Sourcepub const fn event_store(&self) -> &MemoryEventStore<E>
pub const fn event_store(&self) -> &MemoryEventStore<E>
Returns the event-store view used to read committed events.
Sourcepub const fn outbox(&self) -> &MemoryOutboxStore<M>
pub const fn outbox(&self) -> &MemoryOutboxStore<M>
Returns the outbox view used by a publisher worker.
Trait Implementations§
Source§impl<E, M> Default for MemoryEventOutbox<E, M>
impl<E, M> Default for MemoryEventOutbox<E, M>
Source§impl<E, M> TransactionalEventOutbox<E, M> for MemoryEventOutbox<E, M>
impl<E, M> TransactionalEventOutbox<E, M> for MemoryEventOutbox<E, M>
Source§fn append_with_outbox<'a>(
&'a self,
stream_id: &'a StreamId,
expected: ExpectedVersion,
events: Vec<EventEnvelope<E>>,
messages: Vec<OutboxRecord<M>>,
) -> BoxFuture<'a, SoapResult<AppendResult>>
fn append_with_outbox<'a>( &'a self, stream_id: &'a StreamId, expected: ExpectedVersion, events: Vec<EventEnvelope<E>>, messages: Vec<OutboxRecord<M>>, ) -> BoxFuture<'a, SoapResult<AppendResult>>
Appends domain events and integration messages atomically.
Auto Trait Implementations§
impl<E, M> !Freeze for MemoryEventOutbox<E, M>
impl<E, M> RefUnwindSafe for MemoryEventOutbox<E, M>
impl<E, M> Send for MemoryEventOutbox<E, M>
impl<E, M> Sync for MemoryEventOutbox<E, M>
impl<E, M> Unpin for MemoryEventOutbox<E, M>
impl<E, M> UnsafeUnpin for MemoryEventOutbox<E, M>
impl<E, M> UnwindSafe for MemoryEventOutbox<E, M>
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