pub enum Command {
Get(Get),
Publish(Publish),
Set(Set),
Subscribe(Subscribe),
Unsubscribe(Unsubscribe),
Unknown(Unknown),
}
Expand description
Enumeration of supported Redis commands.
Methods called on Command are delegated to the command implementation.
Parse a command from a received frame.
The Frame must represent a Redis command supported by mini-redis and
be the array variant.
On success, the command value is returned, otherwise, Err is returned.
Formats the value using the given formatter.
Read more
Immutably borrows from an owned value.
Read more
Mutably borrows from an owned value.
Read more
Returns the argument unchanged.
Instruments this type with the provided
Span, returning an
Instrumented wrapper.
Read more
Instruments this type with the provided
Span, returning an
Instrumented wrapper.
Read more
Instruments this type with the
current Span, returning an
Instrumented wrapper.
Read more
Calls U::from(self).
That is, this conversion is whatever the implementation of
From<T> for U chooses to do.
The type returned in the event of a conversion error.
Performs the conversion.
The type returned in the event of a conversion error.
Performs the conversion.