#[non_exhaustive]pub enum DataStorageError {
CasMismatch,
Serialization(Error),
CasParseError(ParseIntError),
Timeout,
HttpClient,
Unexpected(String),
}Expand description
Errors that can occur during data storage operations.
This enum represents all possible error conditions that can arise when performing data storage operations.
Variants (Non-exhaustive)§
This enum is marked as non-exhaustive
Non-exhaustive enums could have additional variants added in future. Therefore, when matching against variants of non-exhaustive enums, an extra wildcard arm must be added to account for any future variants.
CasMismatch
Indicates provided CAS value doesn’t match current version of the stored value.
Serialization(Error)
Indicates the requested operation failed due to a serialization error.
CasParseError(ParseIntError)
Indicates the requested operation failed due to a CAS parse error.
Timeout
Indicates the operation timed out.
HttpClient
Indicates an error occurred while performing an http client call.
Unexpected(String)
Indicates an unexpected error occurred.
Trait Implementations§
Source§impl Debug for DataStorageError
impl Debug for DataStorageError
Source§impl Display for DataStorageError
impl Display for DataStorageError
Source§impl Error for DataStorageError
impl Error for DataStorageError
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<ParseIntError> for DataStorageError
impl From<ParseIntError> for DataStorageError
Source§fn from(source: ParseIntError) -> Self
fn from(source: ParseIntError) -> Self
Converts to this type from the input type.
Auto Trait Implementations§
impl Freeze for DataStorageError
impl !RefUnwindSafe for DataStorageError
impl Send for DataStorageError
impl Sync for DataStorageError
impl Unpin for DataStorageError
impl !UnwindSafe for DataStorageError
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