pub enum ParserError {
ProtobufDecode(DecodeError),
UnknownEnumValue(UnknownEnumValue),
SnapDecompress(Error),
StringTable(StringTableError),
Class(ClassError),
Entity(EntityError),
FieldValue(FieldValueError),
GameEvent(GameEventError),
ObserverError(Error),
ReplayEncodingError,
WrongMagic,
IoError(String),
}Expand description
Main error type for parser operations.
This error type covers all parsing-related errors including protobuf decoding, decompression, and various domain-specific errors.
Variants§
ProtobufDecode(DecodeError)
Protobuf decoding error
UnknownEnumValue(UnknownEnumValue)
Unknown enum value in protobuf
SnapDecompress(Error)
Snappy decompression error
StringTable(StringTableError)
String table related error
Class(ClassError)
Class lookup error
Entity(EntityError)
Entity related error
FieldValue(FieldValueError)
Field value conversion error
GameEvent(GameEventError)
Game event error
ObserverError(Error)
Observer callback error
ReplayEncodingError
Invalid CDemoFileInfo offset
WrongMagic
File is not a valid Source 2 demo
IoError(String)
I/O error occurred during file operations
Trait Implementations§
Source§impl Debug for ParserError
impl Debug for ParserError
Source§impl Display for ParserError
impl Display for ParserError
Source§impl Error for ParserError
impl Error for ParserError
Source§fn source(&self) -> Option<&(dyn Error + 'static)>
fn source(&self) -> Option<&(dyn Error + 'static)>
Returns the lower-level source of this error, if any. Read more
1.0.0 · Source§fn description(&self) -> &str
fn description(&self) -> &str
👎Deprecated since 1.42.0:
use the Display impl or to_string()
Source§impl From<ClassError> for ParserError
impl From<ClassError> for ParserError
Source§fn from(source: ClassError) -> Self
fn from(source: ClassError) -> Self
Converts to this type from the input type.
Source§impl From<DecodeError> for ParserError
impl From<DecodeError> for ParserError
Source§fn from(source: DecodeError) -> Self
fn from(source: DecodeError) -> Self
Converts to this type from the input type.
Source§impl From<EntityError> for ParserError
impl From<EntityError> for ParserError
Source§fn from(source: EntityError) -> Self
fn from(source: EntityError) -> Self
Converts to this type from the input type.
Source§impl From<Error> for ParserError
impl From<Error> for ParserError
Source§impl From<Error> for ParserError
impl From<Error> for ParserError
Source§impl From<FieldValueError> for ParserError
impl From<FieldValueError> for ParserError
Source§fn from(source: FieldValueError) -> Self
fn from(source: FieldValueError) -> Self
Converts to this type from the input type.
Source§impl From<GameEventError> for ParserError
impl From<GameEventError> for ParserError
Source§fn from(source: GameEventError) -> Self
fn from(source: GameEventError) -> Self
Converts to this type from the input type.
Source§impl From<StringTableError> for ParserError
impl From<StringTableError> for ParserError
Source§fn from(source: StringTableError) -> Self
fn from(source: StringTableError) -> Self
Converts to this type from the input type.
Source§impl From<UnknownEnumValue> for ParserError
impl From<UnknownEnumValue> for ParserError
Source§fn from(source: UnknownEnumValue) -> Self
fn from(source: UnknownEnumValue) -> Self
Converts to this type from the input type.
Auto Trait Implementations§
impl Freeze for ParserError
impl RefUnwindSafe for ParserError
impl Send for ParserError
impl Sync for ParserError
impl Unpin for ParserError
impl UnsafeUnpin for ParserError
impl UnwindSafe for ParserError
Blanket Implementations§
Source§impl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
Source§fn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more