Struct mbpr::ReqHeader
[−]
[src]
pub struct ReqHeader { /* fields omitted */ }
Memcached Request Packet Header
This is the first 24 bytes of the packet
Methods
impl ReqHeader
[src]
fn parse(buffer: &[u8]) -> ParseResult<Self>
Parse a request header
fn get_opaque(&self) -> u32
fn get_cas(&self) -> u64
fn get_opcode(&self) -> OpCode
fn get_vbucket_id(&self) -> u16
Trait Implementations
impl Clone for ReqHeader
[src]
fn clone(&self) -> ReqHeader
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 ReqHeader
[src]
impl PartialEq for ReqHeader
[src]
fn eq(&self, __arg_0: &ReqHeader) -> bool
This method tests for self
and other
values to be equal, and is used by ==
. Read more
fn ne(&self, __arg_0: &ReqHeader) -> bool
This method tests for !=
.
impl Eq for ReqHeader
[src]
impl PacketVal for ReqHeader
[src]
fn get_keylen(&self) -> usize
fn get_bodylen(&self) -> usize
fn get_extralen(&self) -> usize
fn total_len(&self) -> usize
The total length of the packet