[−][src]Struct iredismodule::call_reply::CallReply
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]
type PtrType = RedisModuleCallReply
fn from_ptr(ptr: *mut RedisModuleCallReply) -> CallReply
[src]
impl GetPtr for CallReply
[src]
impl Into<Result<Value, Error>> for CallReply
[src]
Auto Trait Implementations
impl RefUnwindSafe for CallReply
impl !Send for CallReply
impl !Sync for CallReply
impl Unpin for CallReply
impl UnwindSafe for CallReply
Blanket Implementations
impl<T> Any for T where
T: 'static + ?Sized,
[src]
T: 'static + ?Sized,
impl<T> Borrow<T> for T where
T: ?Sized,
[src]
T: ?Sized,
impl<T> BorrowMut<T> for T where
T: ?Sized,
[src]
T: ?Sized,
fn borrow_mut(&mut self) -> &mut T
[src]
impl<T> From<T> for T
[src]
impl<T, U> Into<U> for T where
U: From<T>,
[src]
U: From<T>,
impl<T, U> TryFrom<U> for T where
U: Into<T>,
[src]
U: Into<T>,
type Error = Infallible
The type returned in the event of a conversion error.
fn try_from(value: U) -> Result<T, <T as TryFrom<U>>::Error>
[src]
impl<T, U> TryInto<U> for T where
U: TryFrom<T>,
[src]
U: TryFrom<T>,