pub struct RedisProtocolError { /* private fields */ }
Expand description
The default error type used with all external functions in this library.
Implementations§
Source§impl RedisProtocolError
impl RedisProtocolError
pub fn buffer_too_small(amt: usize) -> Self
pub fn new<S: Into<Cow<'static, str>>>( kind: RedisProtocolErrorKind, desc: S, ) -> Self
pub fn description(&self) -> &str
pub fn new_empty() -> Self
pub fn to_string(&self) -> String
pub fn kind(&self) -> &RedisProtocolErrorKind
Trait Implementations§
Source§impl Debug for RedisProtocolError
impl Debug for RedisProtocolError
Source§impl Display for RedisProtocolError
impl Display for RedisProtocolError
Source§impl From<Error> for RedisProtocolError
impl From<Error> for RedisProtocolError
Source§impl From<GenError> for RedisProtocolError
impl From<GenError> for RedisProtocolError
Source§impl<I> From<RedisParseError<I>> for RedisProtocolErrorwhere
I: Debug,
impl<I> From<RedisParseError<I>> for RedisProtocolErrorwhere
I: Debug,
Source§fn from(e: RedisParseError<I>) -> Self
fn from(e: RedisParseError<I>) -> Self
Converts to this type from the input type.
Source§impl<B> From<Utf8Error<B>> for RedisProtocolError
impl<B> From<Utf8Error<B>> for RedisProtocolError
Source§fn from(e: BytesUtf8Error<B>) -> Self
fn from(e: BytesUtf8Error<B>) -> Self
Converts to this type from the input type.
Source§impl From<Utf8Error> for RedisProtocolError
impl From<Utf8Error> for RedisProtocolError
Source§impl PartialEq for RedisProtocolError
impl PartialEq for RedisProtocolError
impl Eq for RedisProtocolError
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 !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> 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