pub enum RedsyncError {
RedisError(RedisError),
UnexpectedResponse(Value),
ResourceLocked,
InvalidLease,
LockRetriesExceeded(MultiError),
ExtendRetriesExceeded(MultiError),
UnlockFailed(MultiError),
}Expand description
RedsyncError is an enum of all error kinds returned by the crate.
Variants§
RedisError(RedisError)
UnexpectedResponse(Value)
ResourceLocked
InvalidLease
LockRetriesExceeded(MultiError)
ExtendRetriesExceeded(MultiError)
UnlockFailed(MultiError)
Trait Implementations§
Source§impl Debug for RedsyncError
impl Debug for RedsyncError
Source§impl Display for RedsyncError
impl Display for RedsyncError
Source§impl Error for RedsyncError
impl Error for RedsyncError
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<RedisError> for RedsyncError
impl From<RedisError> for RedsyncError
Source§fn from(source: RedisError) -> Self
fn from(source: RedisError) -> Self
Converts to this type from the input type.
Source§impl PartialEq for RedsyncError
impl PartialEq for RedsyncError
impl StructuralPartialEq for RedsyncError
Auto Trait Implementations§
impl Freeze for RedsyncError
impl !RefUnwindSafe for RedsyncError
impl Send for RedsyncError
impl Sync for RedsyncError
impl Unpin for RedsyncError
impl !UnwindSafe for RedsyncError
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