Enum memcache::CommandError
source · pub enum CommandError {
KeyExists,
KeyNotFound,
ValueTooLarge,
InvalidArguments,
AuthenticationRequired,
Unknown(u16),
InvalidCommand,
}
Expand description
Command specific errors.
Variants§
KeyExists
The client tried to set a key which already existed in the server.
KeyNotFound
The client tried to set a key which does not exist in the server.
ValueTooLarge
The value for a key was too large. The limit is usually 1MB.
InvalidArguments
Invalid arguments were passed to the command.
AuthenticationRequired
The server requires authentication.
Unknown(u16)
When using binary protocol, the server returned an unknown response status.
InvalidCommand
The client sent an invalid command to the server.
Trait Implementations§
source§impl Debug for CommandError
impl Debug for CommandError
source§impl Display for CommandError
impl Display for CommandError
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<u16> for CommandError
impl From<u16> for CommandError
source§fn from(status: u16) -> CommandError
fn from(status: u16) -> CommandError
Converts to this type from the input type.
source§impl PartialEq for CommandError
impl PartialEq for CommandError
source§fn eq(&self, other: &CommandError) -> bool
fn eq(&self, other: &CommandError) -> bool
This method tests for
self
and other
values to be equal, and is used
by ==
.impl StructuralPartialEq for CommandError
Auto Trait Implementations§
impl RefUnwindSafe for CommandError
impl Send for CommandError
impl Sync for CommandError
impl Unpin for CommandError
impl UnwindSafe for CommandError
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