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