pub struct CommandStat {
pub calls: u64,
pub rejected: u64,
pub failed: u64,
}Expand description
One command’s counters, for INFO commandstats.
Three of Redis’s five. usec and usec_per_call are not here because
nothing times a command, and timing one means two clock reads around a call
that takes tens of nanoseconds to begin with. Redis pays that because Redis
has room for it; this does not, and a zero under a name that says microseconds
is worse than an absent field, which is the same rule the rest of INFO
follows.
Fields§
§calls: u64Times the command ran, whatever it answered.
rejected: u64Times it was turned away before it ran, which is the wrong number of
arguments or no room under maxmemory.
failed: u64Times it ran and answered with an error.
Trait Implementations§
Source§impl Clone for CommandStat
impl Clone for CommandStat
Source§fn clone(&self) -> CommandStat
fn clone(&self) -> CommandStat
Returns a duplicate of the value. Read more
1.0.0 (const: unstable) · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source. Read moreimpl Copy for CommandStat
Source§impl Debug for CommandStat
impl Debug for CommandStat
Source§impl Default for CommandStat
impl Default for CommandStat
Source§fn default() -> CommandStat
fn default() -> CommandStat
Returns the “default value” for a type. Read more
Auto Trait Implementations§
impl Freeze for CommandStat
impl RefUnwindSafe for CommandStat
impl Send for CommandStat
impl Sync for CommandStat
impl Unpin for CommandStat
impl UnsafeUnpin for CommandStat
impl UnwindSafe for CommandStat
Blanket Implementations§
Source§impl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
Source§fn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more