Enum tf_demo_parser::ParseError [−][src]
pub enum ParseError {}Show 19 variants
ReadError(BitError), MalformedUTF8(Utf8Error), UnexpectedCompressionType(String), SnapError(Error), UnexpectedDecompressedSize { expected: u32, size: u32, }, InvalidDemo(&'static str), InvalidPacketType(u8), InvalidMessageType(u8), InvalidSendPropType(u8), InvalidSendProp(MalformedSendPropDefinitionError), DataRemaining(usize), StringTableNotFound(u8), MalformedGameEvent(GameEventError), InvalidGameEvent { expected_type: GameEventValueType, name: &'static str, found_type: GameEventValueType, }, UnknownServerClass(ClassId), UnknownSendTable(SendTableName), PropIndexOutOfBounds { index: i32, prop_count: usize, }, UnknownEntity(EntityId), UnknownDefinition(SendPropIdentifier),
Expand description
Errors that can occur during parsing
Variants
ReadError(BitError)
MalformedUTF8(Utf8Error)
UnexpectedCompressionType(String)
SnapError(Error)
Fields of UnexpectedDecompressedSize
InvalidDemo(&'static str)
InvalidPacketType(u8)
InvalidMessageType(u8)
InvalidSendPropType(u8)
InvalidSendProp(MalformedSendPropDefinitionError)
DataRemaining(usize)
StringTableNotFound(u8)
MalformedGameEvent(GameEventError)
Fields of InvalidGameEvent
UnknownServerClass(ClassId)
UnknownSendTable(SendTableName)
UnknownEntity(EntityId)
UnknownDefinition(SendPropIdentifier)
Trait Implementations
👎 Deprecated since 1.42.0:
use the Display impl or to_string()
👎 Deprecated since 1.33.0:
replaced by Error::source, which can support downcasting
The lower-level source of this error, if any. Read more
Performs the conversion.
Performs the conversion.
Performs the conversion.
Performs the conversion.