[][src]Struct iredismodule::call_reply::CallReply

#[repr(C)]pub struct CallReply { /* fields omitted */ }

Wrap the pointer of a RedisModuleCallReply

Implementations

impl CallReply[src]

pub fn get_type(&self) -> ReplyType[src]

Return the reply type

pub fn get_string(&self) -> Result<String, Error>[src]

Get the string value from a string type reply

pub fn get_bulk_string(&self) -> Result<Vec<u8>, Error>[src]

Return the bulk string buffer

pub fn get_double(&self) -> Result<f64, Error>[src]

Return the double value

pub fn get_integer(&self) -> Result<i64, Error>[src]

Get the integer value from a integer type reply

pub fn get_array_element(&self, idx: usize) -> Option<CallReply>[src]

Return the 'idx'-th nested call reply element of an array reply, or None if the reply type is wrong or the index is out of range

pub fn get_proto(&self) -> Vec<u8>[src]

pub fn get_length(&self) -> usize[src]

Return the length of array reply type.

If the reply is not array type, 0 is returned

Trait Implementations

impl Drop for CallReply[src]

impl FromPtr for CallReply[src]

impl GetPtr for CallReply[src]

impl Into<Result<Value, Error>> for CallReply[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.