Struct mysql_proxy::Packet
[−]
[src]
pub struct Packet { pub bytes: Vec<u8>, }
A packet is just a wrapper for a Vec
Fields
bytes: Vec<u8>
Methods
impl Packet
[src]
fn error_packet(code: u16, state: [u8; 5], msg: String) -> Self
Create an error packet
fn sequence_id(&self) -> u8
fn packet_type(&self) -> Result<PacketType, Error>
Determine the type of packet