pub enum PersistError {
ConsensusFailed,
StorageError,
ShuttingDown,
}Expand description
Error returned when event persistence fails.
The hook uses this to decide whether to rollback the transaction. Specific underlying errors are logged by the implementation.
Variants§
ConsensusFailed
VSR consensus failed after retries (quorum unavailable)
StorageError
Storage I/O error
ShuttingDown
System is shutting down
Trait Implementations§
Source§impl Clone for PersistError
impl Clone for PersistError
Source§fn clone(&self) -> PersistError
fn clone(&self) -> PersistError
Returns a duplicate of the value. Read more
1.0.0 · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source. Read moreSource§impl Debug for PersistError
impl Debug for PersistError
Source§impl Display for PersistError
impl Display for PersistError
Source§impl Error for PersistError
impl Error for PersistError
1.30.0 · 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 PartialEq for PersistError
impl PartialEq for PersistError
impl Eq for PersistError
impl StructuralPartialEq for PersistError
Auto Trait Implementations§
impl Freeze for PersistError
impl RefUnwindSafe for PersistError
impl Send for PersistError
impl Sync for PersistError
impl Unpin for PersistError
impl UnwindSafe for PersistError
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