Enum memcached::proto::binary::Status [−][src]
#[repr(u16)]pub enum Status { NoError, KeyNotFound, KeyExists, ValueTooLarge, InvalidArguments, ItemNotStored, IncrDecrOnNonNumericValue, VBucketBelongsToOtherServer, AuthenticationError, AuthenticationContinue, UnknownCommand, OutOfMemory, NotSupported, InternalError, Busy, TemporaryFailure, AuthenticationRequired, AuthenticationFurtherStepRequired, }
Memcached response status
Variants
NoError
KeyNotFound
KeyExists
ValueTooLarge
InvalidArguments
ItemNotStored
IncrDecrOnNonNumericValue
VBucketBelongsToOtherServer
AuthenticationError
AuthenticationContinue
UnknownCommand
OutOfMemory
NotSupported
InternalError
Busy
TemporaryFailure
AuthenticationRequired
AuthenticationFurtherStepRequired
Methods
impl Status
[src]
impl Status
pub fn to_u16(&self) -> u16
[src]
pub fn to_u16(&self) -> u16
Get the binary code of the status
pub fn from_u16(code: u16) -> Option<Status>
[src]
pub fn from_u16(code: u16) -> Option<Status>
Generate a Status from binary code
pub fn desc(&self) -> &'static str
[src]
pub fn desc(&self) -> &'static str
Get a short description
Trait Implementations
impl Copy for Status
[src]
impl Copy for Status
impl Clone for Status
[src]
impl Clone for Status
fn clone(&self) -> Status
[src]
fn clone(&self) -> Status
Returns a copy of the value. Read more
fn clone_from(&mut self, source: &Self)
1.0.0[src]
fn clone_from(&mut self, source: &Self)
1.0.0
[src]Performs copy-assignment from source
. Read more
impl Debug for Status
[src]
impl Debug for Status
fn fmt(&self, f: &mut Formatter) -> Result
[src]
fn fmt(&self, f: &mut Formatter) -> Result
Formats the value using the given formatter. Read more
impl Eq for Status
[src]
impl Eq for Status
impl PartialEq for Status
[src]
impl PartialEq for Status