Enum redsync::RedsyncError
source · 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)>
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<RedsyncError> for RedsyncError
impl PartialEq<RedsyncError> for RedsyncError
source§fn eq(&self, other: &RedsyncError) -> bool
fn eq(&self, other: &RedsyncError) -> bool
This method tests for
self
and other
values to be equal, and is used
by ==
.