[][src]Enum redis_raw::Value

pub enum Value {
    Nil,
    Okay,
    Int(i64),
    Status(String),
    Bulk(Vec<u8>),
    Array(Vec<Value>),
}

Represents a redis RESP protcol response https://redis.io/topics/protocol#resp-protocol-description

Variants

Nil

A nil response from the server.

Okay

A status response which represents the string "OK".

Int(i64)

An integer response. Note that there are a few situations in which redis actually returns a string for an integer.

Status(String)

A simple string response.

Bulk(Vec<u8>)

A Bulk String reply.

Array(Vec<Value>)

An Array response of more data.

Methods

impl Value[src]

pub fn try_into<T: ParseFrom<Self>>(self) -> Result<T, String>[src]

Trait Implementations

impl Clone for Value[src]

impl Debug for Value[src]

impl Eq for Value[src]

impl PartialEq<Value> for Value[src]

impl StructuralEq for Value[src]

impl StructuralPartialEq for Value[src]

Auto Trait Implementations

impl RefUnwindSafe for Value

impl Send for Value

impl Sync for Value

impl Unpin for Value

impl UnwindSafe for Value

Blanket Implementations

impl<T> Any for T where
    T: 'static + ?Sized
[src]

impl<T> Borrow<T> for T where
    T: ?Sized
[src]

impl<T> BorrowMut<T> for T where
    T: ?Sized
[src]

impl<T> From<T> for T[src]

impl<T, U> Into<U> for T where
    U: From<T>, 
[src]

impl<T> ToOwned for T where
    T: Clone
[src]

type Owned = T

The resulting type after obtaining ownership.

impl<T, U> TryFrom<U> for T where
    U: Into<T>, 
[src]

type Error = Infallible

The type returned in the event of a conversion error.

impl<T, U> TryInto<U> for T where
    U: TryFrom<T>, 
[src]

type Error = <U as TryFrom<T>>::Error

The type returned in the event of a conversion error.