[][src]Struct libaster::protocol::redis::Command

pub struct Command {
    pub reply: Option<Message>,
    // some fields omitted
}

Fields

reply: Option<Message>

Implementations

impl Command[src]

pub fn into_cmd(self, notify: Notify) -> Cmd[src]

pub fn parse_cmd(buf: &mut BytesMut) -> Result<Option<Cmd>, AsError>[src]

pub fn reply_cmd(&self, buf: &mut BytesMut) -> Result<usize, AsError>[src]

impl Command[src]

pub fn send_req(&self, buf: &mut BytesMut) -> Result<(), AsError>[src]

save redis Command into given BytesMut

impl Command[src]

pub fn key_hash<T>(&self, hash_tag: &[u8], method: T) -> u64 where
    T: Fn(&[u8]) -> u64
[src]

pub fn subs(&self) -> Option<Vec<Cmd>>[src]

pub fn is_done(&self) -> bool[src]

pub fn cycle(&self) -> u8[src]

pub fn can_cycle(&self) -> bool[src]

pub fn add_cycle(&mut self)[src]

pub fn is_ask(&self) -> bool[src]

pub fn unset_ask(&mut self)[src]

pub fn set_ask(&mut self)[src]

pub fn is_moved(&mut self) -> bool[src]

pub fn set_moved(&mut self)[src]

pub fn unset_moved(&mut self)[src]

pub fn is_error(&self) -> bool[src]

pub fn is_read(&self) -> bool[src]

Trait Implementations

impl Debug for Command[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> IntoReply<T> for T[src]

impl<T> Pointable for T

type Init = T

The type for initializers.

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.

impl<V, T> VZip<V> for T where
    V: MultiLane<T>,