[][src]Struct reredis::client::Client

pub struct Client {
    pub fd: Fd,
    pub token: Token,
    pub flags: i32,
    pub query_buf: Vec<u8>,
    pub last_interaction: SystemTime,
    pub argv: Vec<RobjPtr>,
    pub authenticate: bool,
    pub reply_state: ReplyState,
    pub reply: Vec<RobjPtr>,
    pub reply_db_file: Option<File>,
    pub reply_db_off: u64,
    pub reply_db_size: u64,
    pub reply_off: usize,
    pub request_type: RequestType,
    pub multi_bulk_len: usize,
    pub bulk_len: Option<usize>,
    pub db_idx: usize,
    pub slave_select_db: usize,
}

Fields

fd: Fdtoken: Tokenflags: i32query_buf: Vec<u8>last_interaction: SystemTimeargv: Vec<RobjPtr>authenticate: boolreply_state: ReplyStatereply: Vec<RobjPtr>reply_db_file: Option<File>reply_db_off: u64reply_db_size: u64reply_off: usizerequest_type: RequestTypemulti_bulk_len: usizebulk_len: Option<usize>db_idx: usizeslave_select_db: usize

Methods

impl Client[src]

pub fn with_fd_and_el(
    fd: Fd,
    el: &mut AeEventLoop
) -> Result<Rc<RefCell<Client>>, ()>
[src]

pub fn with_fd(fd: Fd) -> Rc<RefCell<Client>>[src]

pub fn parse_query_buf(&mut self) -> Result<(), CommandError>[src]

pub fn process_input_buffer(
    &mut self,
    server: &mut Server,
    el: &mut AeEventLoop
)
[src]

pub fn process_command(
    &mut self,
    server: &mut Server,
    el: &mut AeEventLoop
) -> Result<(), CommandError>
[src]

pub fn prepare_to_write(&mut self, el: &mut AeEventLoop) -> Result<(), ()>[src]

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

pub fn reset(&mut self)[src]

pub fn add_reply(&mut self, r: RobjPtr)[src]

pub fn add_str_reply(&mut self, s: &str)[src]

pub fn add_reply_from_string(&mut self, s: String)[src]

pub fn glue_reply(&mut self)[src]

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

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

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

Auto Trait Implementations

impl !Send for Client

impl !Sync for Client

impl Unpin for Client

impl !UnwindSafe for Client

impl !RefUnwindSafe for Client

Blanket Implementations

impl<T, U> Into<U> for T where
    U: From<T>, 
[src]

impl<T> From<T> for 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.

impl<T> Borrow<T> for T where
    T: ?Sized
[src]

impl<T> BorrowMut<T> for T where
    T: ?Sized
[src]

impl<T> Any for T where
    T: 'static + ?Sized
[src]

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