pub enum ErrorKind {
Generic(String),
NonexistentCommand,
Protocol(Option<String>),
Client(String),
Server(String),
KeyTooLong,
OpaqueTooLong,
}
Expand description
Errors related to a memcached operation.
Variants§
Generic(String)
General error that may or may not have come from either the server or this crate.
NonexistentCommand
The command sent by the client does not exist.
Protocol(Option<String>)
Protocol-level error i.e. an invalid response from memcached for the given operation.
Client(String)
An error from memcached related to CLIENT_ERROR.
Server(String)
An error from memcached related to SERVER_ERROR.
KeyTooLong
An error from memcached related to a key that exceeds maximum allowed length (250 bytes).
OpaqueTooLong
An error from memcached related to a key that exceeds maximum allowed length (32 bytes).
Trait Implementations§
impl StructuralPartialEq for ErrorKind
Auto Trait Implementations§
impl Freeze for ErrorKind
impl RefUnwindSafe for ErrorKind
impl Send for ErrorKind
impl Sync for ErrorKind
impl Unpin for ErrorKind
impl UnwindSafe for ErrorKind
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