Enum redis_rs::response::RedisResponse[][src]

pub enum RedisResponse {
    SimpleString(String),
    Error(String),
    Integer(i32),
    BulkString(String),
    Array(String),
}

The type the response data will be according to RESP specification https://redis.io/topics/protocol

Variants

SimpleString(String)

Equivalent to String

Error(String)

The server replied with an error

Integer(i32)

A numeric string that can be parsed

BulkString(String)

A string with known size

Array(String)

An array

Trait Implementations

impl Debug for RedisResponse[src]

impl PartialEq<RedisResponse> for RedisResponse[src]

impl StructuralPartialEq for RedisResponse[src]

Auto Trait Implementations

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, 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.