[][src]Enum tf_demo_parser::ParseError

pub enum ParseError {
    ReadError(BitError),
    MalformedUTF8(FromUtf8Error),
    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),
}

Errors that can occur during parsing

Variants

ReadError(BitError)
MalformedUTF8(FromUtf8Error)
UnexpectedCompressionType(String)
SnapError(Error)
UnexpectedDecompressedSize

Fields of UnexpectedDecompressedSize

expected: u32

Expected decompressed size

size: u32

Actual decompressed size

InvalidDemo(&'static str)
InvalidPacketType(u8)
InvalidMessageType(u8)
InvalidSendPropType(u8)
DataRemaining(usize)
StringTableNotFound(u8)
MalformedGameEvent(GameEventError)
InvalidGameEvent

Fields of InvalidGameEvent

expected_type: GameEventValueTypename: &'static strfound_type: GameEventValueType
UnknownServerClass(ClassId)
UnknownSendTable(SendTableName)
PropIndexOutOfBounds

Fields of PropIndexOutOfBounds

index: i32prop_count: usize
UnknownEntity(EntityId)

Trait Implementations

impl Debug for ParseError[src]

impl Display for ParseError[src]

impl Error for ParseError[src]

impl From<BitError> for ParseError[src]

impl From<Error> for ParseError[src]

impl From<FromUtf8Error> for ParseError[src]

impl From<GameEventError> for ParseError[src]

impl From<MalformedSendPropDefinitionError> for ParseError[src]

Auto Trait Implementations

Blanket Implementations

impl<T> Any for T where
    T: 'static + ?Sized
[src]

impl<T> Borrow<T> for T where
    T: ?Sized
[src]

impl<T> BorrowMut<T> for T where
    T: ?Sized
[src]

impl<T> From<T> for T[src]

impl<T, U> Into<U> for T where
    U: From<T>, 
[src]

impl<T> ToString for T where
    T: Display + ?Sized
[src]

impl<T, U> TryFrom<U> for T where
    U: Into<T>, 
[src]

type Error = Infallible

The type returned in the event of a conversion error.

impl<T, U> TryInto<U> for T where
    U: TryFrom<T>, 
[src]

type Error = <U as TryFrom<T>>::Error

The type returned in the event of a conversion error.