Enum mbpr::StatusField
[−]
[src]
pub enum StatusField { NoError, KeyNotFound, KeyExists, ValueTooLarge, InvalidArguments, ItemNotStored, IncrDecrNonNumeric, VBucketNotHere, AuthError, AuthContinue, UnknownCommand, OutOfMemory, NotSupported, InternalError, Busy, TemporaryFailure, }
Status Field
Used in Response Packets if an error occured
Variants
NoError
KeyNotFound
KeyExists
ValueTooLarge
InvalidArguments
ItemNotStored
IncrDecrNonNumeric
VBucketNotHere
AuthError
AuthContinue
UnknownCommand
OutOfMemory
NotSupported
InternalError
Busy
TemporaryFailure
Methods
impl StatusField
[src]
fn check_status(&self) -> Result<(), StatusField>
Base implementatin of status method
This just check if the status field
is StatusField::NoError
or 0x0000u16
in the packet.
Result::Ok(())
The packet is good
Result::Err(StatusField)
The packet is bad. The StatusField value can
never be StatusField::NoError
Trait Implementations
impl Copy for StatusField
[src]
impl Clone for StatusField
[src]
fn clone(&self) -> StatusField
Returns a copy of the value. Read more
fn clone_from(&mut self, source: &Self)
1.0.0
Performs copy-assignment from source
. Read more
impl Debug for StatusField
[src]
impl PartialEq for StatusField
[src]
fn eq(&self, __arg_0: &StatusField) -> bool
This method tests for self
and other
values to be equal, and is used by ==
. Read more
fn ne(&self, other: &Rhs) -> bool
1.0.0
This method tests for !=
.