#[non_exhaustive]pub enum Error {
CacheServiceConfig(CacheServiceError),
Io(Error),
Timeout,
Unavailable,
Overloaded,
Server(String),
Client(String),
Protocol(String),
Desynced(String),
InvalidKey(&'static str),
Unsupported(&'static str),
Decode(String),
}Expand description
Errors returned by the memcached client.
Variants (Non-exhaustive)§
This enum is marked as non-exhaustive
CacheServiceConfig(CacheServiceError)
The cache-service YAML or selected namespace was invalid.
Io(Error)
Transport-level I/O error on an established connection.
Timeout
An operation exceeded the configured timeout.
The physical node has not connected yet or is reconnecting.
Overloaded
The physical node’s bounded request queue is full.
Server(String)
The server reported a SERVER_ERROR (text) or a server-side status.
Client(String)
The server reported a CLIENT_ERROR / invalid-argument style failure.
Protocol(String)
The response could not be parsed / violated the protocol.
Desynced(String)
The connection is out of sync: a response frame did not match the request that was sent (e.g. a leftover frame from a timed-out operation). The connection must be dropped, not reused.
InvalidKey(&'static str)
The key was empty, too long, or contained control/space characters.
Unsupported(&'static str)
A stored value used a feature this client does not decode (QuickLZ compression or Java object serialization).
Decode(String)
A typed decode of a crate::Value did not match the stored flags.
Trait Implementations§
Source§impl Error for Error
impl Error for Error
Source§fn source(&self) -> Option<&(dyn Error + 'static)>
fn source(&self) -> Option<&(dyn Error + 'static)>
1.0.0 · Source§fn description(&self) -> &str
fn description(&self) -> &str
use the Display impl or to_string()