mirror of
https://github.com/tribufu/rust-gamedig
synced 2026-06-01 09:42:41 +00:00
Documentation update
This commit is contained in:
parent
40912bb192
commit
00ead6d946
13 changed files with 117 additions and 58 deletions
|
|
@ -1,14 +1,22 @@
|
|||
use core::fmt;
|
||||
use std::fmt::Formatter;
|
||||
|
||||
/// GameDigError, every error you can encounter using the library.
|
||||
#[derive(Debug, Clone)]
|
||||
pub enum GDError {
|
||||
/// The received packet was bigger than the buffer size.
|
||||
PacketOverflow(String),
|
||||
/// The received packet was shorter than the expected one.
|
||||
PacketUnderflow(String),
|
||||
/// The received packet was badly formatted.
|
||||
PacketBad(String),
|
||||
/// Couldn't send the packet.
|
||||
PacketSend(String),
|
||||
/// Couldn't send the receive.
|
||||
PacketReceive(String),
|
||||
/// Unknown cast while translating a value to an enum
|
||||
UnknownEnumCast,
|
||||
/// The server queried is not from the queried game.
|
||||
BadGame(String)
|
||||
}
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue