Enum mysql_proxy::Action [] [src]

pub enum Action {
    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

forward the packet unmodified

forward a mutated packet

respond to the packet without forwarding

respond with an error packet

Fields