pub enum Error {
Postgres(String, Error),
GetConnection(RunError<Error>),
ToBytes(Box<dyn Error + Send + Sync + 'static>),
FromBytes(Box<dyn Error + Send + Sync + 'static>),
ZeroNonZeroU64,
InvalidLastNonZeroU64(Option<NonZeroU64>, Option<NonZeroU64>),
}Expand description
Errors from the PostgresEventLog or PostgresSnapshotStore.
Variants§
Postgres(String, Error)
Postgres error.
GetConnection(RunError<Error>)
Cannot get connection from pool.
ToBytes(Box<dyn Error + Send + Sync + 'static>)
Cannot convert an event to bytes.
FromBytes(Box<dyn Error + Send + Sync + 'static>)
Cannot convert bytes to an event.
ZeroNonZeroU64
Sequence number must not be zero.
InvalidLastNonZeroU64(Option<NonZeroU64>, Option<NonZeroU64>)
Sequence number must not be zero.
Trait Implementations§
Source§impl Error for Error
impl Error for Error
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()
Auto Trait Implementations§
impl !RefUnwindSafe for Error
impl !UnwindSafe for Error
impl Freeze for Error
impl Send for Error
impl Sync for Error
impl Unpin for Error
impl UnsafeUnpin for Error
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