|
@ -10,7 +10,7 @@ use std::io::Read; |
|
|
pub enum PacketParseError {
|
|
|
pub enum PacketParseError {
|
|
|
NotEnoughBytes,
|
|
|
NotEnoughBytes,
|
|
|
WrongPacketCommand,
|
|
|
WrongPacketCommand,
|
|
|
WrongPacketForServerType(u16),
|
|
|
|
|
|
|
|
|
WrongPacketForServerType(u16, Vec<u8>),
|
|
|
WrongPacketSize(u16, usize),
|
|
|
WrongPacketSize(u16, usize),
|
|
|
DataStructNotLargeEnough(u64, usize),
|
|
|
DataStructNotLargeEnough(u64, usize),
|
|
|
InvalidValue,
|
|
|
InvalidValue,
|
|
|