glame/errors
Types
pub type Error {
PacketSizeTooSmall(packet: BitArray, body_size: Int)
BodyTooLarge(size: Int)
BodyEmpty
BodyNotUTF8(body_bytes: BitArray)
InvalidPacketPadding(packet: BitArray)
InvalidPacketType(packet: BitArray, typ: Int)
InvalidPacketStructure(packet: BitArray)
SocketError(e: mug.Error)
WrongResponseId(wanted: Int, got: Int)
WrongResponseType(wanted: Int, got: Int)
AuthFailed
}
Constructors
-
PacketSizeTooSmall(packet: BitArray, body_size: Int)
The packet size was less than 10
-
BodyTooLarge(size: Int)
The body was larger than 4096 bytes
-
BodyEmpty
Body was empty when trying to execute command
-
BodyNotUTF8(body_bytes: BitArray)
Body was not able to be parsed as a UTF-8
-
InvalidPacketPadding(packet: BitArray)
The packet was not terminated by <<0x00, 0x00>>
-
InvalidPacketType(packet: BitArray, typ: Int)
The packet type was not 0, 2, or 3
-
InvalidPacketStructure(packet: BitArray)
The packet could not be parsed as an RCON packet.
-
SocketError(e: mug.Error)
An error occurred at the socket level.
-
WrongResponseId(wanted: Int, got: Int)
A response did not have the expected id
-
WrongResponseType(wanted: Int, got: Int)
A response did not have the expected type
-
AuthFailed
Server responded with an id of -1 indicating that auth failed. Likely an invalid password