Struct redis_protocol::types::RedisProtocolError
source · [−]pub struct RedisProtocolError { /* private fields */ }
Expand description
The default error type used with all external functions in this library.
Implementations
sourceimpl 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
sourceimpl Debug for RedisProtocolError
impl Debug for RedisProtocolError
sourceimpl Display for RedisProtocolError
impl Display for RedisProtocolError
sourceimpl From<Error> for RedisProtocolError
impl From<Error> for RedisProtocolError
sourceimpl From<GenError> for RedisProtocolError
impl From<GenError> for RedisProtocolError
sourceimpl<I> From<RedisParseError<I>> for RedisProtocolError where
I: Debug,
impl<I> From<RedisParseError<I>> for RedisProtocolError where
I: Debug,
sourcefn from(e: RedisParseError<I>) -> Self
fn from(e: RedisParseError<I>) -> Self
Converts to this type from the input type.
sourceimpl<B> From<Utf8Error<B>> for RedisProtocolError
impl<B> From<Utf8Error<B>> for RedisProtocolError
sourcefn from(e: BytesUtf8Error<B>) -> Self
fn from(e: BytesUtf8Error<B>) -> Self
Converts to this type from the input type.
sourceimpl From<Utf8Error> for RedisProtocolError
impl From<Utf8Error> for RedisProtocolError
sourceimpl PartialEq<RedisProtocolError> for RedisProtocolError
impl PartialEq<RedisProtocolError> for RedisProtocolError
sourcefn eq(&self, other: &RedisProtocolError) -> bool
fn eq(&self, other: &RedisProtocolError) -> bool
This method tests for self
and other
values to be equal, and is used
by ==
. Read more
sourcefn ne(&self, other: &RedisProtocolError) -> bool
fn ne(&self, other: &RedisProtocolError) -> bool
This method tests for !=
.
impl Eq for RedisProtocolError
impl StructuralEq for RedisProtocolError
impl StructuralPartialEq for RedisProtocolError
Auto Trait Implementations
impl !RefUnwindSafe for RedisProtocolError
impl Send for RedisProtocolError
impl Sync for RedisProtocolError
impl Unpin for RedisProtocolError
impl !UnwindSafe for RedisProtocolError
Blanket Implementations
sourceimpl<T> BorrowMut<T> for T where
T: ?Sized,
impl<T> BorrowMut<T> for T where
T: ?Sized,
const: unstable · sourcefn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more