Trait memcache::ToMemcacheValue
[−]
[src]
pub trait ToMemcacheValue { fn get_flags(&self) -> u16; fn get_exptime(&self) -> u32; fn get_length(&self) -> usize; fn write_to(&self, stream: &TcpStream) -> Result<()>; }
determine how the value is serialize to memcache
Required Methods
fn get_flags(&self) -> u16
fn get_exptime(&self) -> u32
fn get_length(&self) -> usize
fn write_to(&self, stream: &TcpStream) -> Result<()>
Implementors
impl<'a> ToMemcacheValue for (&'a [u8], u16)
impl<'a> ToMemcacheValue for &'a Raw<'a>
impl<'a> ToMemcacheValue for &'a [u8]
impl ToMemcacheValue for String
impl<'a> ToMemcacheValue for &'a str
impl ToMemcacheValue for bool
impl ToMemcacheValue for u8
impl ToMemcacheValue for u16
impl ToMemcacheValue for u32
impl ToMemcacheValue for u64
impl ToMemcacheValue for i8
impl ToMemcacheValue for i16
impl ToMemcacheValue for i32
impl ToMemcacheValue for i64
impl ToMemcacheValue for f32
impl ToMemcacheValue for f64