Enum uosql::types::Command [] [src]

pub enum Command {
    Quit,
    Ping,
    Query(String),
}

Sent by the client to the server.

Many commands are executed via query, but there are some "special" commands that are not sent as query.

Variants

Quit
Ping
Query

Trait Implementations

Derived Implementations

impl PartialEq<Command> for Command

fn eq(&self, __arg_0: &Command) -> bool

fn ne(&self, __arg_0: &Command) -> bool

impl Debug for Command

fn fmt(&self, __arg_0: &mut Formatter) -> Result<(), Error>

impl Decodable for Command

fn decode<__D>(__arg_0: &mut __D) -> Result<Command, __D::Error> where __D: Decoder

impl Encodable for Command

fn encode<__S>(&self, __arg_0: &mut __S) -> Result<(), __S::Error> where __S: Encoder