[][src]Struct cqrs::trivial::NullEventStore

pub struct NullEventStore<A, E>(_)
where
    A: Aggregate,
    E: AggregateEvent<A>
;

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]

pub const DEFAULT: Self[src]

A constant value representing a trivial event store.

Trait Implementations

impl<A: Copy, E: Copy> Copy for NullEventStore<A, E> where
    A: Aggregate,
    E: AggregateEvent<A>, 
[src]

impl<A, E> Default for NullEventStore<A, E> where
    A: Aggregate,
    E: AggregateEvent<A>, 
[src]

impl<A: Clone, E: Clone> Clone for NullEventStore<A, E> where
    A: Aggregate,
    E: AggregateEvent<A>, 
[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]

impl<A, E> EventSource<A, E> for NullEventStore<A, E> where
    A: Aggregate,
    E: AggregateEvent<A>, 
[src]

type Error = Void

The error type.

type Events = Empty<VersionedEvent<E>>

Represents the sequence of events read from the event source.

impl<A, E, M> EventSink<A, E, M> for NullEventStore<A, E> where
    A: Aggregate,
    E: AggregateEvent<A>, 
[src]

type Error = Void

The error type.

Auto Trait Implementations

impl<A, E> !Sync for NullEventStore<A, E>

impl<A, E> Unpin for NullEventStore<A, E> where
    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

impl<A, E> RefUnwindSafe for NullEventStore<A, E> where
    A: RefUnwindSafe,
    E: RefUnwindSafe

Blanket Implementations

impl<T, U> Into<U> for T where
    U: From<T>, 
[src]

impl<T> ToOwned for T where
    T: Clone
[src]

type Owned = T

The resulting type after obtaining ownership.

impl<T> From<T> for T[src]

impl<T, U> TryFrom<U> for T where
    U: Into<T>, 
[src]

type Error = Infallible

The type returned in the event of a conversion error.

impl<T, U> TryInto<U> for T where
    U: TryFrom<T>, 
[src]

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

The type returned in the event of a conversion error.

impl<T> Borrow<T> for T where
    T: ?Sized
[src]

impl<T> BorrowMut<T> for T where
    T: ?Sized
[src]

impl<T> Any for T where
    T: 'static + ?Sized
[src]