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

pub enum Command {
    Get(Get),
    Publish(Publish),
    Set(Set),
    Subscribe(Subscribe),
    Unsubscribe(Unsubscribe),
    Unknown(Unknown),
}

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

impl Command[src]

pub fn from_frame(frame: Frame) -> Result<Command>[src]

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

impl Debug for Command[src]

Auto Trait Implementations

impl RefUnwindSafe for Command

impl Send for Command

impl Sync for Command

impl Unpin for Command

impl UnwindSafe for Command

Blanket Implementations

impl<T> Any for T where
    T: 'static + ?Sized
[src]

impl<T> Borrow<T> for T where
    T: ?Sized
[src]

impl<T> BorrowMut<T> for T where
    T: ?Sized
[src]

impl<T> From<T> for T[src]

impl<T> Instrument for T[src]

impl<T> Instrument for T[src]

impl<T, U> Into<U> for T where
    U: From<T>, 
[src]

impl<T, U> TryFrom<U> for T where
    U: Into<T>, 
[src]

type Error = Infallible

The type returned in the event of a conversion error.

impl<T, U> TryInto<U> for T where
    U: TryFrom<T>, 
[src]

type Error = <U as TryFrom<T>>::Error

The type returned in the event of a conversion error.

impl<T> WithSubscriber for T[src]