pub struct ConflictError {
pub expected: u32,
pub actual: u32,
}Expand description
Error returned by the EventStore::append when a conflict has been detected.
Fields§
§expected: u32The last version value found the Store.
actual: u32The actual version passed by the caller to the Store.
Trait Implementations§
Source§impl AppendError for ConflictError
impl AppendError for ConflictError
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 ConflictError
impl Debug for ConflictError
Source§impl Display for ConflictError
impl Display for ConflictError
Source§impl Error for ConflictError
impl Error for ConflictError
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 ConflictError
impl PartialEq for ConflictError
impl Eq for ConflictError
impl StructuralPartialEq for ConflictError
Auto Trait Implementations§
impl Freeze for ConflictError
impl RefUnwindSafe for ConflictError
impl Send for ConflictError
impl Sync for ConflictError
impl Unpin for ConflictError
impl UnwindSafe for ConflictError
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