[][src]Enum cqrs_postgres::PersistError

pub enum PersistError<E: CqrsError> {
    Postgres(Error),
    PreconditionFailed(Precondition),
    SerializationError(E),
}

An error while attempting to persist an event or snapshot.

Variants

Postgres(Error)

An error from the PostgreSQL backend.

PreconditionFailed(Precondition)

The operation failed because a specified precondition failed.

SerializationError(E)

The operation failed because there was a serialization error.

Trait Implementations

impl<E: CqrsError> From<Error> for PersistError<E>[src]

impl<E: CqrsError> From<Precondition> for PersistError<E>[src]

impl<E: CqrsError> Display for PersistError<E>[src]

impl<E: Debug + CqrsError> Debug for PersistError<E>[src]

Auto Trait Implementations

impl<E> Send for PersistError<E>

impl<E> Sync for PersistError<E>

Blanket Implementations

impl<T> ToString for T where
    T: Display + ?Sized
[src]

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

impl<T> From for T[src]

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

type Error = Infallible

The type returned in the event of a conversion error.

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

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

impl<T, U> TryInto 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> Any for T where
    T: 'static + ?Sized
[src]

impl<T> CqrsError for T where
    T: Debug + Display + Send + Sync + 'static, 
[src]

impl<T> Same for T

type Output = T

Should always be Self

impl<T> Erased for T