pub enum SlowlogSub {
Get(Option<i64>),
Len,
Reset,
Help,
Err(Vec<u8>),
}Expand description
Parsed SLOWLOG <sub> [args] decision — picked at routing time so
the runtime knows whether to fan out or short-circuit.
Variants§
Get(Option<i64>)
SLOWLOG GET [count]. None = use Redis default of 10. Some(n)
where n < 0 means “all entries”.
Len
SLOWLOG LEN.
Reset
SLOWLOG RESET.
Help
SLOWLOG HELP.
Err(Vec<u8>)
Routing-time error: malformed or unknown subcommand. The byte
slice carries the full RESP error reply (e.g. -ERR ...\r\n)
so dispatch is a one-step Part::Reply.
Trait Implementations§
Source§impl Clone for SlowlogSub
impl Clone for SlowlogSub
Source§fn clone(&self) -> SlowlogSub
fn clone(&self) -> SlowlogSub
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 moreAuto Trait Implementations§
impl Freeze for SlowlogSub
impl RefUnwindSafe for SlowlogSub
impl Send for SlowlogSub
impl Sync for SlowlogSub
impl Unpin for SlowlogSub
impl UnsafeUnpin for SlowlogSub
impl UnwindSafe for SlowlogSub
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