pub enum RepositoryError<A: Aggregate> {
Aggregate(A::Error),
EventReader(EventReaderError),
SnapshotReader(SnapshotReaderError),
EventWriter(EventWriterError),
SnapshotWriter(SnapshotWriterError),
}Variants§
Aggregate(A::Error)
EventReader(EventReaderError)
SnapshotReader(SnapshotReaderError)
EventWriter(EventWriterError)
SnapshotWriter(SnapshotWriterError)
Trait Implementations§
Source§impl<A: Aggregate> Display for RepositoryError<A>
impl<A: Aggregate> Display for RepositoryError<A>
Source§impl<A: Aggregate> Error for RepositoryError<A>
impl<A: Aggregate> Error for RepositoryError<A>
Source§fn source(&self) -> Option<&(dyn Error + 'static)>
fn source(&self) -> Option<&(dyn Error + 'static)>
Returns the lower-level source of this error, if any. Read more
1.0.0 · Source§fn description(&self) -> &str
fn description(&self) -> &str
👎Deprecated since 1.42.0: use the Display impl or to_string()
Source§impl<A: Aggregate> From<EventReaderError> for RepositoryError<A>
impl<A: Aggregate> From<EventReaderError> for RepositoryError<A>
Source§fn from(source: EventReaderError) -> Self
fn from(source: EventReaderError) -> Self
Converts to this type from the input type.
Source§impl<A: Aggregate> From<EventWriterError> for RepositoryError<A>
impl<A: Aggregate> From<EventWriterError> for RepositoryError<A>
Source§fn from(source: EventWriterError) -> Self
fn from(source: EventWriterError) -> Self
Converts to this type from the input type.
Source§impl<A: Aggregate> From<SnapshotReaderError> for RepositoryError<A>
impl<A: Aggregate> From<SnapshotReaderError> for RepositoryError<A>
Source§fn from(source: SnapshotReaderError) -> Self
fn from(source: SnapshotReaderError) -> Self
Converts to this type from the input type.
Source§impl<A: Aggregate> From<SnapshotWriterError> for RepositoryError<A>
impl<A: Aggregate> From<SnapshotWriterError> for RepositoryError<A>
Source§fn from(source: SnapshotWriterError) -> Self
fn from(source: SnapshotWriterError) -> Self
Converts to this type from the input type.
Auto Trait Implementations§
impl<A> Freeze for RepositoryError<A>
impl<A> !RefUnwindSafe for RepositoryError<A>
impl<A> Send for RepositoryError<A>
impl<A> Sync for RepositoryError<A>
impl<A> Unpin for RepositoryError<A>
impl<A> !UnwindSafe for RepositoryError<A>
Blanket Implementations§
Source§impl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
Source§fn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more