Struct mbpr::ResHeader [] [src]

pub struct ResHeader { /* fields omitted */ }

Memcached Response Packet Header

This is the first 24 bytes of the packet

Methods

impl ResHeader
[src]

Check Status Field

If the condition StatusField::NoError is set this will return Ok(()), if there is an error it will return it in Err(StatusField::_)

All standard error codes are implemented.

Parse a packet header

Trait Implementations

impl Clone for ResHeader
[src]

Returns a copy of the value. Read more

Performs copy-assignment from source. Read more

impl Debug for ResHeader
[src]

Formats the value using the given formatter.

impl PartialEq for ResHeader
[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 ResHeader
[src]

impl PacketVal for ResHeader
[src]

The total length of the packet

impl Encoding for ResHeader
[src]

Relatively fast method for encoding header

If you avoid the with::capacity method for constructing Encoder this method is prefectly safe and will encode the packet header without any bounds checks.