pub enum MemcacheError {
BadURL(String),
IOError(Error),
ClientError(ClientError),
ServerError(ServerError),
CommandError(CommandError),
OpensslError(HandshakeError<TcpStream>),
ParseError(ParseError),
PoolError(Error),
}
Expand description
Stands for errors raised from rust-memcache
Variants§
BadURL(String)
Error raised when the provided memcache URL doesn’t have a host name
IOError(Error)
std::io
related errors.
ClientError(ClientError)
Client Errors
ServerError(ServerError)
Server Errors
CommandError(CommandError)
Command specific Errors
OpensslError(HandshakeError<TcpStream>)
ParseError(ParseError)
Parse errors
PoolError(Error)
ConnectionPool errors
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 source(&self) -> Option<&(dyn Error + 'static)>
fn source(&self) -> Option<&(dyn Error + 'static)>
Returns the lower-level source of this error, if any. Read more
1.0.0 · source§fn description(&self) -> &str
fn description(&self) -> &str
👎Deprecated since 1.42.0: use the Display impl or to_string()
source§impl From<ClientError> for MemcacheError
impl From<ClientError> for MemcacheError
source§fn from(err: ClientError) -> Self
fn from(err: ClientError) -> Self
Converts to this type from the input type.
source§impl From<CommandError> for MemcacheError
impl From<CommandError> for MemcacheError
source§fn from(err: CommandError) -> Self
fn from(err: CommandError) -> Self
Converts to this type from the input type.
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<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<ErrorStack> for MemcacheError
impl From<ErrorStack> for MemcacheError
source§fn from(err: ErrorStack) -> MemcacheError
fn from(err: ErrorStack) -> 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<HandshakeError<TcpStream>> for MemcacheError
impl From<HandshakeError<TcpStream>> for MemcacheError
source§fn from(err: HandshakeError<TcpStream>) -> MemcacheError
fn from(err: HandshakeError<TcpStream>) -> 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<ParseError> for MemcacheError
impl From<ParseError> for MemcacheError
source§fn from(err: ParseError) -> MemcacheError
fn from(err: ParseError) -> 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<ServerError> for MemcacheError
impl From<ServerError> for MemcacheError
source§fn from(err: ServerError) -> Self
fn from(err: ServerError) -> Self
Converts to this type from the input type.
source§impl From<Utf8Error> for MemcacheError
impl From<Utf8Error> for MemcacheError
source§fn from(err: Utf8Error) -> MemcacheError
fn from(err: Utf8Error) -> MemcacheError
Converts to this type from the input type.
Auto Trait Implementations§
impl Freeze for MemcacheError
impl !RefUnwindSafe for MemcacheError
impl Send for MemcacheError
impl Sync for MemcacheError
impl Unpin for MemcacheError
impl !UnwindSafe for MemcacheError
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