mirror of
https://github.com/tribufu/rust-gamedig
synced 2026-06-01 09:42:41 +00:00
Decompression support
This commit is contained in:
parent
e621a9aedd
commit
3b4dd9d9e4
4 changed files with 61 additions and 24 deletions
|
|
@ -17,7 +17,9 @@ pub enum GDError {
|
|||
PacketSend(String),
|
||||
/// Couldn't send the receive.
|
||||
PacketReceive(String),
|
||||
/// Unknown cast while translating a value to an enum
|
||||
/// Couldn't decompress data.
|
||||
Decompress(String),
|
||||
/// Unknown cast while translating a value to an enum.
|
||||
UnknownEnumCast,
|
||||
/// The server queried is not from the queried game.
|
||||
BadGame(String)
|
||||
|
|
@ -31,6 +33,7 @@ impl fmt::Display for GDError {
|
|||
GDError::PacketBad(details) => write!(f, "Packet bad: {details}"),
|
||||
GDError::PacketSend(details) => write!(f, "Couldn't send a packet: {details}"),
|
||||
GDError::PacketReceive(details) => write!(f, "Couldn't receive a packet: {details}"),
|
||||
GDError::Decompress(details) => write!(f, "Couldn't decompress data: {details}"),
|
||||
GDError::UnknownEnumCast => write!(f, "Unknown enum cast encountered."),
|
||||
GDError::BadGame(details) => write!(f, "Queried another game that the supposed one: {details}"),
|
||||
}
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue