[−][src]Struct eventmill::inmemory_store::InMemoryStore
Implementations
impl<E, A> InMemoryStore<E, A> where
A: WithAggregateId,
AggregateIdOf<A>: Display,
[src]
A: WithAggregateId,
AggregateIdOf<A>: Display,
pub fn new() -> Self
[src]
pub fn with_events(events: impl IntoIterator<Item = DomainEvent<E, A>>) -> Self
[src]
Trait Implementations
impl<E: Debug, A: Debug> Debug for InMemoryStore<E, A> where
A: WithAggregateId,
[src]
A: WithAggregateId,
impl<E, A> Default for InMemoryStore<E, A> where
A: WithAggregateId,
[src]
A: WithAggregateId,
impl<E, A> EventSink<E, A> for InMemoryStore<E, A> where
E: EventType,
A: WithAggregateId,
AggregateIdOf<A>: Display,
[src]
E: EventType,
A: WithAggregateId,
AggregateIdOf<A>: Display,
type Error = Error
fn append(&self, event: DomainEvent<E, A>) -> Result<(), Self::Error>
[src]
fn append_batch(
&self,
events: impl IntoIterator<Item = DomainEvent<E, A>>
) -> Result<(), Self::Error>
[src]
&self,
events: impl IntoIterator<Item = DomainEvent<E, A>>
) -> Result<(), Self::Error>
impl<E, A> EventSource<E, A> for InMemoryStore<E, A> where
E: EventType,
A: WithAggregateId,
AggregateIdOf<A>: Display,
[src]
E: EventType,
A: WithAggregateId,
AggregateIdOf<A>: Display,
type Error = Error
fn read<R>(
&self,
aggregate_id: &AggregateIdOf<A>,
subscriber: &mut R
) -> Result<(), Self::Error> where
R: ReceiveEvent<E, A>,
[src]
&self,
aggregate_id: &AggregateIdOf<A>,
subscriber: &mut R
) -> Result<(), Self::Error> where
R: ReceiveEvent<E, A>,
fn read_from_offset<R>(
&self,
aggregate_id: &AggregateIdOf<A>,
offset: Sequence,
subscriber: &mut R
) -> Result<(), Self::Error> where
R: ReceiveEvent<E, A>,
[src]
&self,
aggregate_id: &AggregateIdOf<A>,
offset: Sequence,
subscriber: &mut R
) -> Result<(), Self::Error> where
R: ReceiveEvent<E, A>,
Auto Trait Implementations
impl<E, A> RefUnwindSafe for InMemoryStore<E, A>
impl<E, A> Send for InMemoryStore<E, A> where
E: Send + Sync,
<A as WithAggregateId>::Id: Send + Sync,
E: Send + Sync,
<A as WithAggregateId>::Id: Send + Sync,
impl<E, A> Sync for InMemoryStore<E, A> where
E: Send + Sync,
<A as WithAggregateId>::Id: Send + Sync,
E: Send + Sync,
<A as WithAggregateId>::Id: Send + Sync,
impl<E, A> Unpin for InMemoryStore<E, A>
impl<E, A> UnwindSafe for InMemoryStore<E, A>
Blanket Implementations
impl<T> Any for T where
T: 'static + ?Sized,
[src]
T: 'static + ?Sized,
impl<T> Borrow<T> for T where
T: ?Sized,
[src]
T: ?Sized,
impl<T> BorrowMut<T> for T where
T: ?Sized,
[src]
T: ?Sized,
fn borrow_mut(&mut self) -> &mut T
[src]
impl<T> From<T> for T
[src]
impl<T, U> Into<U> for T where
U: From<T>,
[src]
U: From<T>,
impl<T, U> TryFrom<U> for T where
U: Into<T>,
[src]
U: Into<T>,
type Error = Infallible
The type returned in the event of a conversion error.
fn try_from(value: U) -> Result<T, <T as TryFrom<U>>::Error>
[src]
impl<T, U> TryInto<U> for T where
U: TryFrom<T>,
[src]
U: TryFrom<T>,