[−][src]Struct cqrs::trivial::NullEventStore
A trivial store that never has any events, and which always succeeds in persisting data (which is immediately dropped).
Methods
impl<A, E> NullEventStore<A, E> where
A: Aggregate,
E: AggregateEvent<A>,
[src]
A: Aggregate,
E: AggregateEvent<A>,
Trait Implementations
impl<A: Copy, E: Copy> Copy for NullEventStore<A, E> where
A: Aggregate,
E: AggregateEvent<A>,
[src]
A: Aggregate,
E: AggregateEvent<A>,
impl<A, E> Default for NullEventStore<A, E> where
A: Aggregate,
E: AggregateEvent<A>,
[src]
A: Aggregate,
E: AggregateEvent<A>,
impl<A: Clone, E: Clone> Clone for NullEventStore<A, E> where
A: Aggregate,
E: AggregateEvent<A>,
[src]
A: Aggregate,
E: AggregateEvent<A>,
fn clone(&self) -> NullEventStore<A, E>
[src]
fn clone_from(&mut self, source: &Self)
1.0.0[src]
Performs copy-assignment from source
. Read more
impl<A, E> Debug for NullEventStore<A, E> where
A: Aggregate,
E: AggregateEvent<A>,
[src]
A: Aggregate,
E: AggregateEvent<A>,
impl<A, E> EventSource<A, E> for NullEventStore<A, E> where
A: Aggregate,
E: AggregateEvent<A>,
[src]
A: Aggregate,
E: AggregateEvent<A>,
type Error = Void
The error type.
type Events = Empty<VersionedEvent<E>>
Represents the sequence of events read from the event source.
fn read_events<I>(
&self,
_id: &I,
_version: Since,
_max_count: Option<u64>
) -> Result<Option<Self::Events>, Self::Error> where
I: AggregateId<A>,
[src]
&self,
_id: &I,
_version: Since,
_max_count: Option<u64>
) -> Result<Option<Self::Events>, Self::Error> where
I: AggregateId<A>,
impl<A, E, M> EventSink<A, E, M> for NullEventStore<A, E> where
A: Aggregate,
E: AggregateEvent<A>,
[src]
A: Aggregate,
E: AggregateEvent<A>,
type Error = Void
The error type.
fn append_events<I>(
&self,
_id: &I,
_events: &[E],
_expect: Option<Precondition>,
_metadata: M
) -> Result<EventNumber, Self::Error> where
I: AggregateId<A>,
[src]
&self,
_id: &I,
_events: &[E],
_expect: Option<Precondition>,
_metadata: M
) -> Result<EventNumber, Self::Error> where
I: AggregateId<A>,
Auto Trait Implementations
impl<A, E> !Sync for NullEventStore<A, E>
impl<A, E> Unpin for NullEventStore<A, E> where
A: Unpin,
E: Unpin,
A: Unpin,
E: Unpin,
impl<A, E> !Send for NullEventStore<A, E>
impl<A, E> UnwindSafe for NullEventStore<A, E> where
A: RefUnwindSafe,
E: RefUnwindSafe,
A: RefUnwindSafe,
E: RefUnwindSafe,
impl<A, E> RefUnwindSafe for NullEventStore<A, E> where
A: RefUnwindSafe,
E: RefUnwindSafe,
A: RefUnwindSafe,
E: RefUnwindSafe,
Blanket Implementations
impl<T, U> Into<U> for T where
U: From<T>,
[src]
U: From<T>,
impl<T> ToOwned for T where
T: Clone,
[src]
T: Clone,
type Owned = T
The resulting type after obtaining ownership.
fn to_owned(&self) -> T
[src]
fn clone_into(&self, target: &mut T)
[src]
impl<T> From<T> for T
[src]
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>,
type Error = <U as TryFrom<T>>::Error
The type returned in the event of a conversion error.
fn try_into(self) -> Result<U, <U as TryFrom<T>>::Error>
[src]
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> Any for T where
T: 'static + ?Sized,
[src]
T: 'static + ?Sized,