Struct fred::types::SlowlogEntry
source · pub struct SlowlogEntry {
pub id: i64,
pub timestamp: i64,
pub duration: Duration,
pub args: Vec<RedisValue>,
pub ip: Option<Str>,
pub name: Option<Str>,
}
Expand description
The output of an entry in the slow queries log.
Fields§
§id: i64
§timestamp: i64
§duration: Duration
§args: Vec<RedisValue>
§ip: Option<Str>
§name: Option<Str>
Trait Implementations§
source§impl Clone for SlowlogEntry
impl Clone for SlowlogEntry
source§fn clone(&self) -> SlowlogEntry
fn clone(&self) -> SlowlogEntry
Returns a copy of the value. Read more
1.0.0 · source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source
. Read moresource§impl Debug for SlowlogEntry
impl Debug for SlowlogEntry
source§impl FromRedis for SlowlogEntry
Available on crate feature i-slowlog
only.
impl FromRedis for SlowlogEntry
Available on crate feature
i-slowlog
only.fn from_value(value: RedisValue) -> Result<Self, RedisError>
source§impl PartialEq for SlowlogEntry
impl PartialEq for SlowlogEntry
source§fn eq(&self, other: &SlowlogEntry) -> bool
fn eq(&self, other: &SlowlogEntry) -> bool
This method tests for
self
and other
values to be equal, and is used
by ==
.source§impl TryFrom<RedisValue> for SlowlogEntry
impl TryFrom<RedisValue> for SlowlogEntry
§type Error = RedisError
type Error = RedisError
The type returned in the event of a conversion error.
impl Eq for SlowlogEntry
impl StructuralPartialEq for SlowlogEntry
Auto Trait Implementations§
impl !Freeze for SlowlogEntry
impl RefUnwindSafe for SlowlogEntry
impl Send for SlowlogEntry
impl Sync for SlowlogEntry
impl Unpin for SlowlogEntry
impl UnwindSafe for SlowlogEntry
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