Struct redis_protocol::types::RedisProtocolError [−][src]
pub struct RedisProtocolError<'a> { /* fields omitted */ }
Methods
impl<'a> RedisProtocolError<'a>
[src]
impl<'a> RedisProtocolError<'a>
pub fn new<S: Into<Cow<'static, str>>>(
kind: RedisProtocolErrorKind,
desc: S
) -> Self
[src]
pub fn new<S: Into<Cow<'static, str>>>(
kind: RedisProtocolErrorKind,
desc: S
) -> Self
pub fn new_empty() -> Self
[src]
pub fn new_empty() -> Self
pub fn to_string(&self) -> String
[src]
pub fn to_string(&self) -> String
pub fn kind(&self) -> &RedisProtocolErrorKind
[src]
pub fn kind(&self) -> &RedisProtocolErrorKind
pub fn context(&self) -> Option<&[u8]>
[src]
pub fn context(&self) -> Option<&[u8]>
Attempt to read the underlying data on which the encoding or decoding error occurred.
Trait Implementations
impl<'a> Clone for RedisProtocolError<'a>
[src]
impl<'a> Clone for RedisProtocolError<'a>
fn clone(&self) -> RedisProtocolError<'a>
[src]
fn clone(&self) -> RedisProtocolError<'a>
Returns a copy of the value. Read more
fn clone_from(&mut self, source: &Self)
1.0.0[src]
fn clone_from(&mut self, source: &Self)
1.0.0
[src]Performs copy-assignment from source
. Read more
impl<'a> Debug for RedisProtocolError<'a>
[src]
impl<'a> Debug for RedisProtocolError<'a>
fn fmt(&self, f: &mut Formatter) -> Result
[src]
fn fmt(&self, f: &mut Formatter) -> Result
Formats the value using the given formatter. Read more
impl<'a> Eq for RedisProtocolError<'a>
[src]
impl<'a> Eq for RedisProtocolError<'a>
impl<'a> PartialEq for RedisProtocolError<'a>
[src]
impl<'a> PartialEq for RedisProtocolError<'a>
fn eq(&self, other: &RedisProtocolError<'a>) -> bool
[src]
fn eq(&self, other: &RedisProtocolError<'a>) -> bool
This method tests for self
and other
values to be equal, and is used by ==
. Read more
fn ne(&self, other: &RedisProtocolError<'a>) -> bool
[src]
fn ne(&self, other: &RedisProtocolError<'a>) -> bool
This method tests for !=
.
impl<'a> Display for RedisProtocolError<'a>
[src]
impl<'a> Display for RedisProtocolError<'a>
fn fmt(&self, f: &mut Formatter) -> Result
[src]
fn fmt(&self, f: &mut Formatter) -> Result
Formats the value using the given formatter. Read more
impl<'a> Error for RedisProtocolError<'a>
[src]
impl<'a> Error for RedisProtocolError<'a>
fn description(&self) -> &str
[src]
fn description(&self) -> &str
This method is soft-deprecated. Read more
fn cause(&self) -> Option<&Error>
1.0.0[src]
fn cause(&self) -> Option<&Error>
1.0.0
[src]The lower-level cause of this error, if any. Read more
impl<'a> From<GenError> for RedisProtocolError<'a>
[src]
impl<'a> From<GenError> for RedisProtocolError<'a>
impl<'a> From<NomError<&'a [u8]>> for RedisProtocolError<'a>
[src]
impl<'a> From<NomError<&'a [u8]>> for RedisProtocolError<'a>
Auto Trait Implementations
impl<'a> Send for RedisProtocolError<'a>
impl<'a> Send for RedisProtocolError<'a>
impl<'a> Sync for RedisProtocolError<'a>
impl<'a> Sync for RedisProtocolError<'a>