[−][src]Struct reredis::client::Client
Fields
fd: Fd
token: Token
flags: i32
query_buf: Vec<u8>
last_interaction: SystemTime
argv: Vec<RobjPtr>
authenticate: bool
reply_state: ReplyState
reply: Vec<RobjPtr>
reply_db_file: Option<File>
reply_db_off: u64
reply_db_size: u64
reply_off: usize
request_type: RequestType
multi_bulk_len: usize
bulk_len: Option<usize>
db_idx: usize
slave_select_db: usize
Methods
impl Client
[src]
pub fn with_fd_and_el(
fd: Fd,
el: &mut AeEventLoop
) -> Result<Rc<RefCell<Client>>, ()>
[src]
fd: Fd,
el: &mut AeEventLoop
) -> Result<Rc<RefCell<Client>>, ()>
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]
&mut self,
server: &mut Server,
el: &mut AeEventLoop
)
pub fn process_command(
&mut self,
server: &mut Server,
el: &mut AeEventLoop
) -> Result<(), CommandError>
[src]
&mut self,
server: &mut Server,
el: &mut AeEventLoop
) -> Result<(), CommandError>
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]
U: From<T>,
impl<T> From<T> for T
[src]
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>,
type Error = <U as TryFrom<T>>::Error
The type returned in the event of a conversion error.
fn try_into(self) -> Result<U, <U as TryFrom<T>>::Error>
[src]
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> Any for T where
T: 'static + ?Sized,
[src]
T: 'static + ?Sized,
impl<V, T> VZip<V> for T where
V: MultiLane<T>,
V: MultiLane<T>,