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
Tuple Fields of ReadError
0: BitError
Tuple Fields of MalformedUTF8
0: Utf8Error
Tuple Fields of UnexpectedCompressionType
0: String
Tuple Fields of SnapError
0: Error
Fields of UnexpectedDecompressedSize
Tuple Fields of InvalidDemo
0: &'static str
Tuple Fields of InvalidPacketType
0: u8
Tuple Fields of InvalidMessageType
0: u8
Tuple Fields of InvalidSendPropType
0: u8
Tuple Fields of InvalidSendProp
Tuple Fields of DataRemaining
0: usize
Tuple Fields of StringTableNotFound
0: u8
Tuple Fields of MalformedGameEvent
Fields of InvalidGameEvent
Tuple Fields of UnknownServerClass
0: ClassId
Tuple Fields of UnknownSendTable
Tuple Fields of UnknownEntity
0: EntityId
Tuple Fields of UnknownDefinition
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.
Auto Trait Implementations
impl RefUnwindSafe for ParseError
impl Send for ParseError
impl Sync for ParseError
impl Unpin for ParseError
impl UnwindSafe for ParseError
Blanket Implementations
Mutably borrows from an owned value. Read more
Instruments this type with the provided Span
, returning an
Instrumented
wrapper. Read more