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]
fn get_opcode(&self) -> OpCode
fn get_opaque(&self) -> u32
fn get_cas(&self) -> u64
fn check_status(&self) -> Result<(), StatusField>
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.
fn parse(x: &[u8]) -> ParseResult<ResHeader>
Parse a packet header
Trait Implementations
impl Clone for ResHeader
[src]
fn clone(&self) -> ResHeader
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 ResHeader
[src]
impl PartialEq for ResHeader
[src]
fn eq(&self, __arg_0: &ResHeader) -> bool
This method tests for self
and other
values to be equal, and is used by ==
. Read more
fn ne(&self, __arg_0: &ResHeader) -> bool
This method tests for !=
.
impl Eq for ResHeader
[src]
impl PacketVal for ResHeader
[src]
fn get_keylen(&self) -> usize
fn get_extralen(&self) -> usize
fn get_bodylen(&self) -> usize
fn total_len(&self) -> usize
The total length of the packet