Enum mbpr::StatusField [] [src]

#[repr(u16)]
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

Methods

impl StatusField
[src]

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]

Returns a copy of the value. Read more

Performs copy-assignment from source. Read more

impl Debug for StatusField
[src]

Formats the value using the given formatter.

impl PartialEq for StatusField
[src]

This method tests for self and other values to be equal, and is used by ==. Read more

This method tests for !=.

impl Eq for StatusField
[src]

impl Into<u16> for StatusField
[src]

Performs the conversion.

impl Encoding for StatusField
[src]

Encodes value into packet