Enum mini_redis::cmd::Command[][src]

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.

Variants

Get(Get)
Publish(Publish)
Set(Set)
Subscribe(Subscribe)
Unsubscribe(Unsubscribe)
Unknown(Unknown)

Implementations

Parse a command from a received frame.

The Frame must represent a Redis command supported by mini-redis and be the array variant.

Returns

On success, the command value is returned, otherwise, Err is returned.

Trait Implementations

Formats the value using the given formatter. Read more

Auto Trait Implementations

Blanket Implementations

Gets the TypeId of self. Read more

Immutably borrows from an owned value. Read more

Mutably borrows from an owned value. Read more

Performs the conversion.

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

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

Performs the conversion.

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.

Attaches the provided Subscriber to this type, returning a WithDispatch wrapper. Read more

Attaches the current default Subscriber to this type, returning a WithDispatch wrapper. Read more