pub enum RedisProtocolErrorKind {
EncodeError,
BufferTooSmall(usize),
DecodeError,
IO(Error),
Unknown,
}Expand description
The kind of error without any associated data.
Variants§
EncodeError
An error that occurred while encoding data.
BufferTooSmall(usize)
An error indicating that the provided buffer needs to be extended by the inner usize bytes before encoding can continue.
DecodeError
An error that occurred while decoding data.
IO(Error)
Available on crate feature
std only.An IO error.
Unknown
An unknown error, or an error that can occur during encoding or decoding.
Implementations§
Trait Implementations§
Source§impl Debug for RedisProtocolErrorKind
impl Debug for RedisProtocolErrorKind
Source§impl PartialEq for RedisProtocolErrorKind
impl PartialEq for RedisProtocolErrorKind
impl Eq for RedisProtocolErrorKind
Auto Trait Implementations§
impl Freeze for RedisProtocolErrorKind
impl !RefUnwindSafe for RedisProtocolErrorKind
impl Send for RedisProtocolErrorKind
impl Sync for RedisProtocolErrorKind
impl Unpin for RedisProtocolErrorKind
impl !UnwindSafe for RedisProtocolErrorKind
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> IntoEither for T
impl<T> IntoEither for T
Source§fn into_either(self, into_left: bool) -> Either<Self, Self>
fn into_either(self, into_left: bool) -> Either<Self, Self>
Converts
self into a Left variant of Either<Self, Self>
if into_left is true.
Converts self into a Right variant of Either<Self, Self>
otherwise. Read moreSource§fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
Converts
self into a Left variant of Either<Self, Self>
if into_left(&self) returns true.
Converts self into a Right variant of Either<Self, Self>
otherwise. Read more