pub enum MemcacheError {
UrlError(ParseError),
Io(Error),
ClientError(ClientError),
Utf8Error(FromUtf8Error),
PoolError(RunError<Error>),
Serde(Error),
Nom(String),
Memcache(ErrorKind),
Dns(ResolveError),
}
Expand description
Stands for errors raised from vmemcached
Variants§
UrlError(ParseError)
URL parse error
Io(Error)
std::io
related errors.
ClientError(ClientError)
Client Errors
Utf8Error(FromUtf8Error)
Parse errors
PoolError(RunError<Error>)
ConnectionPool errors
Serde(Error)
JSON error
Nom(String)
Nom error
Memcache(ErrorKind)
Memcache error
Dns(ResolveError)
DNS resolution error
Implementations§
Source§impl MemcacheError
impl MemcacheError
Sourcepub fn is_timeout(&self) -> bool
pub fn is_timeout(&self) -> bool
Check if error type was time out
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<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(e: Error) -> MemcacheError
fn from(e: Error) -> MemcacheError
Converts to this type from the input type.
Source§impl From<ErrorKind> for MemcacheError
impl From<ErrorKind> for MemcacheError
Source§fn from(e: ErrorKind) -> MemcacheError
fn from(e: ErrorKind) -> MemcacheError
Converts to this type from the input type.
Source§impl From<ErrorKind> for MemcacheError
impl From<ErrorKind> for MemcacheError
Source§fn from(err: ErrorKind) -> MemcacheError
fn from(err: ErrorKind) -> 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<ParseError> for MemcacheError
impl From<ParseError> for MemcacheError
Source§fn from(e: ParseError) -> MemcacheError
fn from(e: ParseError) -> MemcacheError
Converts to this type from the input type.
Source§impl From<ResolveError> for MemcacheError
impl From<ResolveError> for MemcacheError
Source§fn from(e: ResolveError) -> MemcacheError
fn from(e: ResolveError) -> MemcacheError
Converts to this type from the input type.
Source§impl From<RunError<MemcacheError>> for MemcacheError
impl From<RunError<MemcacheError>> for MemcacheError
Source§fn from(e: RunError<MemcacheError>) -> Self
fn from(e: RunError<MemcacheError>) -> Self
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