Struct ClientInfo

Source
pub struct ClientInfo {
Show 27 fields pub id: i64, pub addr: String, pub laddr: String, pub fd: u32, pub name: String, pub age: u32, pub idle: u32, pub flags: String, pub db: usize, pub sub: usize, pub psub: usize, pub ssub: usize, pub multi: usize, pub qbuf: usize, pub qbuf_free: usize, pub argv_mem: usize, pub multi_mem: usize, pub obl: usize, pub oll: usize, pub omem: usize, pub tot_mem: usize, pub events: String, pub cmd: String, pub user: String, pub redir: i64, pub resp: i32, pub additional_arguments: HashMap<String, String>,
}
Expand description

Client info results for the client_info & client_list commands.

Fields§

§id: i64

a unique 64-bit client ID

§addr: String

address/port of the client

§laddr: String

address/port of local address client connected to (bind address)

§fd: u32

file descriptor corresponding to the socket

§name: String

the name set by the client with client_setname

§age: u32

total duration of the connection in seconds

§idle: u32

idle time of the connection in seconds

§flags: String

client flags (see client-list)

§db: usize

current database ID

§sub: usize

number of channel subscriptions

§psub: usize

number of pattern matching subscriptions

§ssub: usize

number of shard channel subscriptions. Added in Redis 7.0.3

§multi: usize

number of commands in a MULTI/EXEC context

§qbuf: usize

query buffer length (0 means no query pending)

§qbuf_free: usize

free space of the query buffer (0 means the buffer is full)

§argv_mem: usize

incomplete arguments for the next command (already extracted from query buffer)

§multi_mem: usize

memory is used up by buffered multi commands. Added in Redis 7.0

§obl: usize

output buffer length

§oll: usize

output list length (replies are queued in this list when the buffer is full)

§omem: usize

output buffer memory usage

§tot_mem: usize

total memory consumed by this client in its various buffers

§events: String

file descriptor events (r or w)

§cmd: String

last command played

§user: String

the authenticated username of the client

§redir: i64

client id of current client tracking redirection

§resp: i32

client RESP protocol version

§additional_arguments: HashMap<String, String>

additional arguments that may be added in future versions of Redis

Implementations§

Trait Implementations§

Source§

impl Debug for ClientInfo

Source§

fn fmt(&self, f: &mut Formatter<'_>) -> Result

Formats the value using the given formatter. Read more
Source§

impl FromValue for ClientInfo

Source§

fn from_value(value: Value) -> Result<Self>

Used to do Value to user type conversion Read more
Source§

fn from_value_with_command(value: Value, _command: &Command) -> Result<Self>

Source§

fn next_functor<I: Iterator<Item = Value>>() -> Box<dyn FnMut(&mut I) -> Option<Result<Self>>>

Auto Trait Implementations§

Blanket Implementations§

Source§

impl<T> Any for T
where T: 'static + ?Sized,

Source§

fn type_id(&self) -> TypeId

Gets the TypeId of self. Read more
Source§

impl<T> Borrow<T> for T
where T: ?Sized,

Source§

fn borrow(&self) -> &T

Immutably borrows from an owned value. Read more
Source§

impl<T> BorrowMut<T> for T
where T: ?Sized,

Source§

fn borrow_mut(&mut self) -> &mut T

Mutably borrows from an owned value. Read more
Source§

impl<T> From<T> for T

Source§

fn from(t: T) -> T

Returns the argument unchanged.

Source§

impl<T, U> Into<U> for T
where U: From<T>,

Source§

fn into(self) -> U

Calls U::from(self).

That is, this conversion is whatever the implementation of From<T> for U chooses to do.

Source§

impl<T, U> TryFrom<U> for T
where U: Into<T>,

Source§

type Error = Infallible

The type returned in the event of a conversion error.
Source§

fn try_from(value: U) -> Result<T, <T as TryFrom<U>>::Error>

Performs the conversion.
Source§

impl<T, U> TryInto<U> for T
where U: TryFrom<T>,

Source§

type Error = <U as TryFrom<T>>::Error

The type returned in the event of a conversion error.
Source§

fn try_into(self) -> Result<U, <U as TryFrom<T>>::Error>

Performs the conversion.
Source§

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

Source§

fn vzip(self) -> V

Source§

impl<T> ErasedDestructor for T
where T: 'static,