Enum memcache::MemcacheError
source · [−]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
sourceimpl Debug for MemcacheError
impl Debug for MemcacheError
sourceimpl Display for MemcacheError
impl Display for MemcacheError
sourceimpl Error for MemcacheError
impl Error for MemcacheError
sourcefn source(&self) -> Option<&(dyn Error + 'static)>
fn source(&self) -> Option<&(dyn Error + 'static)>
The lower-level source of this error, if any. Read more
1.0.0 · sourcefn description(&self) -> &str
fn description(&self) -> &str
👎Deprecated since 1.42.0: use the Display impl or to_string()
sourceimpl From<ClientError> for MemcacheError
impl From<ClientError> for MemcacheError
sourcefn from(err: ClientError) -> Self
fn from(err: ClientError) -> Self
Converts to this type from the input type.
sourceimpl From<CommandError> for MemcacheError
impl From<CommandError> for MemcacheError
sourcefn from(err: CommandError) -> Self
fn from(err: CommandError) -> Self
Converts to this type from the input type.
sourceimpl From<Error> for MemcacheError
impl From<Error> for MemcacheError
sourcefn from(err: Error) -> MemcacheError
fn from(err: Error) -> MemcacheError
Converts to this type from the input type.
sourceimpl From<Error> for MemcacheError
impl From<Error> for MemcacheError
sourcefn from(err: Error) -> MemcacheError
fn from(err: Error) -> MemcacheError
Converts to this type from the input type.
sourceimpl From<ErrorStack> for MemcacheError
impl From<ErrorStack> for MemcacheError
sourcefn from(err: ErrorStack) -> MemcacheError
fn from(err: ErrorStack) -> MemcacheError
Converts to this type from the input type.
sourceimpl From<FromUtf8Error> for MemcacheError
impl From<FromUtf8Error> for MemcacheError
sourcefn from(err: FromUtf8Error) -> MemcacheError
fn from(err: FromUtf8Error) -> MemcacheError
Converts to this type from the input type.
sourceimpl From<HandshakeError<TcpStream>> for MemcacheError
impl From<HandshakeError<TcpStream>> for MemcacheError
sourcefn from(err: HandshakeError<TcpStream>) -> MemcacheError
fn from(err: HandshakeError<TcpStream>) -> MemcacheError
Converts to this type from the input type.
sourceimpl From<ParseBoolError> for MemcacheError
impl From<ParseBoolError> for MemcacheError
sourcefn from(err: ParseBoolError) -> MemcacheError
fn from(err: ParseBoolError) -> MemcacheError
Converts to this type from the input type.
sourceimpl From<ParseError> for MemcacheError
impl From<ParseError> for MemcacheError
sourcefn from(err: ParseError) -> MemcacheError
fn from(err: ParseError) -> MemcacheError
Converts to this type from the input type.
sourceimpl From<ParseFloatError> for MemcacheError
impl From<ParseFloatError> for MemcacheError
sourcefn from(err: ParseFloatError) -> MemcacheError
fn from(err: ParseFloatError) -> MemcacheError
Converts to this type from the input type.
sourceimpl From<ParseIntError> for MemcacheError
impl From<ParseIntError> for MemcacheError
sourcefn from(err: ParseIntError) -> MemcacheError
fn from(err: ParseIntError) -> MemcacheError
Converts to this type from the input type.
sourceimpl From<ServerError> for MemcacheError
impl From<ServerError> for MemcacheError
sourcefn from(err: ServerError) -> Self
fn from(err: ServerError) -> Self
Converts to this type from the input type.
sourceimpl From<Utf8Error> for MemcacheError
impl From<Utf8Error> for MemcacheError
sourcefn from(err: Utf8Error) -> MemcacheError
fn from(err: Utf8Error) -> MemcacheError
Converts to this type from the input type.
Auto Trait Implementations
impl !RefUnwindSafe for MemcacheError
impl Send for MemcacheError
impl Sync for MemcacheError
impl Unpin for MemcacheError
impl !UnwindSafe for MemcacheError
Blanket Implementations
sourceimpl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
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