[][src]Enum eventually_core::repository::Error

pub enum Error<A, S> where
    A: Aggregate + Debug,
    S: EventStore + Debug,
    A::Error: StdError + 'static,
    S::Error: StdError + 'static, 
{ Aggregate(A::Error), Store(S::Error), NoEvents, }

Error type returned by the Repository.

Variants

Aggregate(A::Error)

Error returned by the Aggregate, usually when recreating the State.

Store(S::Error)

Error returned by the underlying EventStore.

NoEvents

Error returned by add method when trying to add an AggregateRoot that has no Events to be flushed to the EventStore.

Trait Implementations

impl<A: Debug, S: Debug> Debug for Error<A, S> where
    A: Aggregate + Debug,
    S: EventStore + Debug,
    A::Error: StdError + 'static,
    S::Error: StdError + 'static,
    A::Error: Debug,
    S::Error: Debug
[src]

impl<A, S> Display for Error<A, S> where
    A: Aggregate + Debug,
    S: EventStore + Debug,
    A::Error: StdError + 'static,
    S::Error: StdError + 'static, 
[src]

impl<A: Eq, S: Eq> Eq for Error<A, S> where
    A: Aggregate + Debug,
    S: EventStore + Debug,
    A::Error: StdError + 'static,
    S::Error: StdError + 'static,
    A::Error: Eq,
    S::Error: Eq
[src]

impl<A, S> Error for Error<A, S> where
    A: Aggregate + Debug,
    S: EventStore + Debug,
    A::Error: StdError + 'static,
    S::Error: StdError + 'static, 
[src]

impl<A: PartialEq, S: PartialEq> PartialEq<Error<A, S>> for Error<A, S> where
    A: Aggregate + Debug,
    S: EventStore + Debug,
    A::Error: StdError + 'static,
    S::Error: StdError + 'static,
    A::Error: PartialEq,
    S::Error: PartialEq
[src]

impl<A, S> StructuralEq for Error<A, S> where
    A: Aggregate + Debug,
    S: EventStore + Debug,
    A::Error: StdError + 'static,
    S::Error: StdError + 'static, 
[src]

impl<A, S> StructuralPartialEq for Error<A, S> where
    A: Aggregate + Debug,
    S: EventStore + Debug,
    A::Error: StdError + 'static,
    S::Error: StdError + 'static, 
[src]

Auto Trait Implementations

impl<A, S> RefUnwindSafe for Error<A, S> where
    <A as Aggregate>::Error: RefUnwindSafe,
    <S as EventStore>::Error: RefUnwindSafe

impl<A, S> Send for Error<A, S> where
    <A as Aggregate>::Error: Send,
    <S as EventStore>::Error: Send

impl<A, S> Sync for Error<A, S> where
    <A as Aggregate>::Error: Sync,
    <S as EventStore>::Error: Sync

impl<A, S> Unpin for Error<A, S> where
    <A as Aggregate>::Error: Unpin,
    <S as EventStore>::Error: Unpin

impl<A, S> UnwindSafe for Error<A, S> where
    <A as Aggregate>::Error: UnwindSafe,
    <S as EventStore>::Error: UnwindSafe

Blanket Implementations

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

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

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

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

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

impl<T> ToString for T where
    T: Display + ?Sized
[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.