Skip to main content

MemoryEventOutbox

Struct MemoryEventOutbox 

Source
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>

Source

pub fn new() -> Self

Creates an empty combined store.

Source

pub const fn event_store(&self) -> &MemoryEventStore<E>

Returns the event-store view used to read committed events.

Source

pub const fn outbox(&self) -> &MemoryOutboxStore<M>

Returns the outbox view used by a publisher worker.

Trait Implementations§

Source§

impl<E: Debug, M: Debug> Debug for MemoryEventOutbox<E, M>

Source§

fn fmt(&self, f: &mut Formatter<'_>) -> Result

Formats the value using the given formatter. Read more
Source§

impl<E, M> Default for MemoryEventOutbox<E, M>

Source§

fn default() -> Self

Returns the “default value” for a type. Read more
Source§

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>>

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>
where E: Send, M: Send,

§

impl<E, M> Sync for MemoryEventOutbox<E, M>
where E: Send, M: Send,

§

impl<E, M> Unpin for MemoryEventOutbox<E, M>
where E: Unpin, M: Unpin,

§

impl<E, M> UnsafeUnpin for MemoryEventOutbox<E, M>

§

impl<E, M> UnwindSafe for MemoryEventOutbox<E, M>

Blanket Implementations§

Source§

impl<T> Any for T
where T: 'static + ?Sized,

Source§

fn type_id(&self) -> TypeId

Gets the TypeId of self. Read more
Source§

impl<T> Borrow<T> for T
where T: ?Sized,

Source§

fn borrow(&self) -> &T

Immutably borrows from an owned value. Read more
Source§

impl<T> BorrowMut<T> for T
where T: ?Sized,

Source§

fn borrow_mut(&mut self) -> &mut T

Mutably borrows from an owned value. Read more
Source§

impl<T> From<T> for T

Source§

fn from(t: T) -> T

Returns the argument unchanged.

Source§

impl<T, U> Into<U> for T
where U: From<T>,

Source§

fn into(self) -> U

Calls U::from(self).

That is, this conversion is whatever the implementation of From<T> for U chooses to do.

Source§

impl<T, U> TryFrom<U> for T
where U: Into<T>,

Source§

type Error = Infallible

The type returned in the event of a conversion error.
Source§

fn try_from(value: U) -> Result<T, <T as TryFrom<U>>::Error>

Performs the conversion.
Source§

impl<T, U> TryInto<U> for T
where U: TryFrom<T>,

Source§

type Error = <U as TryFrom<T>>::Error

The type returned in the event of a conversion error.
Source§

fn try_into(self) -> Result<U, <U as TryFrom<T>>::Error>

Performs the conversion.