Enum tk_redis::Value
[−]
[src]
pub enum Value { Nil, Int(i64), Data(Vec<u8>), Bulk(Vec<Value>), Status(String), Okay, }
Variants
Nil
Int(i64)
Data(Vec<u8>)
Bulk(Vec<Value>)
Status(String)
Okay
Methods
impl Value
[src]
fn is_okay(&self) -> bool
fn is_int(&self) -> bool
fn is_data(&self) -> bool
fn is_bulk(&self) -> bool
fn as_i64(&self) -> Option<i64>
fn as_str(&self) -> Option<&str>
fn as_str_lossy(&self) -> Option<Cow<str>>
fn as_f64(&self) -> Option<f64>
fn into_string(self) -> Result<String, Value>
fn parse(buf: &[u8]) -> Result<Option<(Value, usize)>>
Trait Implementations
impl Clone for Value
[src]
fn clone(&self) -> Value
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