pub enum ServerError {
BadMagic(u8),
BadResponse(Cow<'static, str>),
Error(String),
}
Expand description
Server-side errors
Variants§
BadMagic(u8)
When using binary protocol, the server returned magic byte other than 0x81 in the response packet.
BadResponse(Cow<'static, str>)
The client did not expect this response from the server.
Error(String)
The server returned an error prefixed with SERVER_ERROR in response to a command.
Trait Implementations§
Source§impl Debug for ServerError
impl Debug for ServerError
Source§impl Display for ServerError
impl Display for ServerError
Source§impl From<ServerError> for MemcachedError
impl From<ServerError> for MemcachedError
Source§fn from(err: ServerError) -> Self
fn from(err: ServerError) -> Self
Converts to this type from the input type.
Auto Trait Implementations§
impl Freeze for ServerError
impl RefUnwindSafe for ServerError
impl Send for ServerError
impl Sync for ServerError
impl Unpin for ServerError
impl UnwindSafe for ServerError
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