Enum mysql_proxy::Action [] [src]

pub enum Action {
    Drop,
    Forward,
    Mutate(Packet),
    Respond(Vec<Packet>),
    Error {
        code: u16,
        state: [u8; 5],
        msg: String,
    },
}

Handlers return a variant of this enum to indicate how the proxy should handle the packet.

Variants

drop the packet

forward the packet unmodified

forward a mutated packet

respond to the packet without forwarding

respond with an error packet

Fields of Error

Trait Implementations

impl Debug for Action
[src]

Formats the value using the given formatter.

impl PartialEq for Action
[src]

This method tests for self and other values to be equal, and is used by ==. Read more

This method tests for !=.