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
Dropdrop the packet
Forwardforward the packet unmodified
Mutate(Packet)forward a mutated packet
Respond(Vec<Packet>)respond to the packet without forwarding
Errorrespond with an error packet
Fields
code: u16 | |
state: [u8; 5] | |
msg: String |