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 Stringimpl<'a> ToMemcacheValue for &'a strimpl ToMemcacheValue for boolimpl ToMemcacheValue for u8impl ToMemcacheValue for u16impl ToMemcacheValue for u32impl ToMemcacheValue for u64impl ToMemcacheValue for i8impl ToMemcacheValue for i16impl ToMemcacheValue for i32impl ToMemcacheValue for i64impl ToMemcacheValue for f32impl ToMemcacheValue for f64