pub enum ConcurrencyError {
NotMostRecent,
CasFailed,
}Expand description
PutQuery for crate::MutableItem errors
Variants§
NotMostRecent
The crate::MutableItem::seq is less than or equal the sequence from another signed item.
Try reading most recent mutable item before writing again.
CasFailed
The CAS condition does not match the seq of the most recent known signed item.
Trait Implementations§
Source§impl Clone for ConcurrencyError
impl Clone for ConcurrencyError
Source§fn clone(&self) -> ConcurrencyError
fn clone(&self) -> ConcurrencyError
Returns a duplicate of the value. Read more
1.0.0 (const: unstable) · 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 ConcurrencyError
impl Debug for ConcurrencyError
Source§impl Display for ConcurrencyError
impl Display for ConcurrencyError
Source§impl Error for ConcurrencyError
impl Error for ConcurrencyError
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 From<ConcurrencyError> for AnyError
impl From<ConcurrencyError> for AnyError
Source§fn from(value: ConcurrencyError) -> AnyError
fn from(value: ConcurrencyError) -> AnyError
Converts to this type from the input type.
Source§impl From<ConcurrencyError> for PutError
impl From<ConcurrencyError> for PutError
Source§fn from(source: ConcurrencyError) -> Self
fn from(source: ConcurrencyError) -> Self
Converts to this type from the input type.
Source§impl From<ConcurrencyError> for PutMutableError
impl From<ConcurrencyError> for PutMutableError
Source§fn from(source: ConcurrencyError) -> Self
fn from(source: ConcurrencyError) -> Self
Converts to this type from the input type.
Source§impl StackError for ConcurrencyError
impl StackError for ConcurrencyError
Source§fn as_std(&self) -> &(dyn Error + Send + Sync + 'static)
fn as_std(&self) -> &(dyn Error + Send + Sync + 'static)
Returns this error as a std error reference.
Source§fn into_std(self: Box<Self>) -> Box<dyn Error + Send + Sync>
fn into_std(self: Box<Self>) -> Box<dyn Error + Send + Sync>
Returns this error as a std error.
Source§fn as_dyn(&self) -> &dyn StackError
fn as_dyn(&self) -> &dyn StackError
Returns this error as a
dyn StackError.Source§fn fmt_message(&self, f: &mut Formatter<'_>) -> Result
fn fmt_message(&self, f: &mut Formatter<'_>) -> Result
Returns the next source in the chain, if any.
Source§fn is_transparent(&self) -> bool
fn is_transparent(&self) -> bool
Returns whether this error is transparent and should be skipped in reports.
Auto Trait Implementations§
impl Freeze for ConcurrencyError
impl RefUnwindSafe for ConcurrencyError
impl Send for ConcurrencyError
impl Sync for ConcurrencyError
impl Unpin for ConcurrencyError
impl UnsafeUnpin for ConcurrencyError
impl UnwindSafe for ConcurrencyError
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