Enum memcache::MemcacheError
source · pub enum MemcacheError {
Io(Error),
FromUtf8(FromUtf8Error),
ParseIntError(ParseIntError),
ParseFloatError(ParseFloatError),
ParseBoolError(ParseBoolError),
ClientError(String),
ServerError(u16),
}
Expand description
Stands for errors raised from rust-memcache
Variants§
Io(Error)
std::io
related errors.
FromUtf8(FromUtf8Error)
Error raised when unserialize value data which from memcached to String
ParseIntError(ParseIntError)
ParseFloatError(ParseFloatError)
ParseBoolError(ParseBoolError)
ClientError(String)
ServerError(u16)
Trait Implementations§
source§impl Debug for MemcacheError
impl Debug for MemcacheError
source§impl Display for MemcacheError
impl Display for MemcacheError
source§impl Error for MemcacheError
impl Error for MemcacheError
source§fn description(&self) -> &str
fn description(&self) -> &str
👎Deprecated since 1.42.0: use the Display impl or to_string()
source§fn cause(&self) -> Option<&dyn Error>
fn cause(&self) -> Option<&dyn Error>
👎Deprecated since 1.33.0: replaced by Error::source, which can support downcasting
source§impl From<Error> for MemcacheError
impl From<Error> for MemcacheError
source§fn from(err: Error) -> MemcacheError
fn from(err: Error) -> MemcacheError
Converts to this type from the input type.
source§impl From<FromUtf8Error> for MemcacheError
impl From<FromUtf8Error> for MemcacheError
source§fn from(err: FromUtf8Error) -> MemcacheError
fn from(err: FromUtf8Error) -> MemcacheError
Converts to this type from the input type.
source§impl From<ParseBoolError> for MemcacheError
impl From<ParseBoolError> for MemcacheError
source§fn from(err: ParseBoolError) -> MemcacheError
fn from(err: ParseBoolError) -> MemcacheError
Converts to this type from the input type.
source§impl From<ParseFloatError> for MemcacheError
impl From<ParseFloatError> for MemcacheError
source§fn from(err: ParseFloatError) -> MemcacheError
fn from(err: ParseFloatError) -> MemcacheError
Converts to this type from the input type.
source§impl From<ParseIntError> for MemcacheError
impl From<ParseIntError> for MemcacheError
source§fn from(err: ParseIntError) -> MemcacheError
fn from(err: ParseIntError) -> MemcacheError
Converts to this type from the input type.
source§impl From<String> for MemcacheError
impl From<String> for MemcacheError
source§fn from(s: String) -> MemcacheError
fn from(s: String) -> MemcacheError
Converts to this type from the input type.
source§impl From<u16> for MemcacheError
impl From<u16> for MemcacheError
source§fn from(code: u16) -> MemcacheError
fn from(code: u16) -> MemcacheError
Converts to this type from the input type.