pub struct RedisProtocolError {
pub message: String,
}Expand description
A reply the server accepted but that violates the DialCache wire protocol.
Such replies are never retried: the command executed and the adapter has no way to tell what state the server holds.
Fields§
§message: StringWhat the reply violated: an unexpected reply type, a tracked read
without exactly two bulk values, a SET reply other than OK, or an
invalidation reply other than the integer 1.
Trait Implementations§
Source§impl Clone for RedisProtocolError
impl Clone for RedisProtocolError
Source§fn clone(&self) -> RedisProtocolError
fn clone(&self) -> RedisProtocolError
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 RedisProtocolError
impl Debug for RedisProtocolError
Source§impl Display for RedisProtocolError
impl Display for RedisProtocolError
impl Eq for RedisProtocolError
Source§impl Error for RedisProtocolError
impl Error for RedisProtocolError
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 RedisProtocolError
impl PartialEq for RedisProtocolError
Source§fn eq(&self, other: &RedisProtocolError) -> bool
fn eq(&self, other: &RedisProtocolError) -> bool
Tests for
self and other values to be equal, and is used by ==.impl StructuralPartialEq for RedisProtocolError
Auto Trait Implementations§
impl Freeze for RedisProtocolError
impl RefUnwindSafe for RedisProtocolError
impl Send for RedisProtocolError
impl Sync for RedisProtocolError
impl Unpin for RedisProtocolError
impl UnsafeUnpin for RedisProtocolError
impl UnwindSafe for RedisProtocolError
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
Source§impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
§impl<Q, K> Equivalent<K> for Q
impl<Q, K> Equivalent<K> for Q
§fn equivalent(&self, key: &K) -> bool
fn equivalent(&self, key: &K) -> bool
Compare self to
key and return true if they are equal.