pub enum StoreError {
EncodeEvents(Error),
DecodeEvents(Error),
Stream(RedisError),
NoKey(&'static str),
DecodeSourceId(Error),
}
Expand description
Error types returned by the eventually::EventStore
implementation
on the EventStore
type.
Variants§
EncodeEvents(Error)
Error returned when failed to encode events to JSON during append
.
DecodeEvents(Error)
Error returned when failed to decoding events from JSON
during either stream
or stream_all
.
Stream(RedisError)
Error returned when reading the stream coming from XRANGE .. COUNT n
during either stream
or stream_all
.
NoKey(&'static str)
Error returned when attempting to read a key from the Redis stream that does not exist.
DecodeSourceId(Error)
Error returned when attempting to decode the source id of one Redis stream entry.
Trait Implementations§
Source§impl AppendError for StoreError
impl AppendError for StoreError
Source§fn is_conflict_error(&self) -> bool
fn is_conflict_error(&self) -> bool
Returns true if the error is due to a version conflict
during
append
.Source§impl Debug for StoreError
impl Debug for StoreError
Source§impl Display for StoreError
impl Display for StoreError
Source§impl Error for StoreError
impl Error for StoreError
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 Freeze for StoreError
impl !RefUnwindSafe for StoreError
impl Send for StoreError
impl Sync for StoreError
impl Unpin for StoreError
impl !UnwindSafe for StoreError
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