Enum redif::Value [] [src]

pub enum Value {
    Nil,
    NullArray,
    Int(i64),
    Data(Vec<u8>),
    Bulk(Vec<Value>),
    Status(String),
    Error(String),
}

Represents a RESP value, see Redis Protocol specification.

Variants

A nil response, $-1\r\n

Null array response, *-1\r\n

An integer response. Note that there are a few situations in which redis actually returns a string for an integer which is why this library generally treats integers and strings the same for all numeric responses. With the first byte of the response is ":".

An arbitary binary data. With the first byte of the response is "$".

A bulk response of more data. This is generally used by redis to express nested structures. With the first byte of the response is "*".

A status response with the first byte of the response is "+".

An error response with the first byte of the response is "-".

Methods

impl Value
[src]

[src]

[src]

[src]

[src]

Trait Implementations

impl PartialEq for Value
[src]

[src]

This method tests for self and other values to be equal, and is used by ==. Read more

[src]

This method tests for !=.

impl Eq for Value
[src]

impl Clone for Value
[src]

[src]

Returns a copy of the value. Read more

1.0.0
[src]

Performs copy-assignment from source. Read more

impl Debug for Value
[src]

[src]

Formats the value using the given formatter.