pub enum MPQParserError {
Show 13 variants
MissingArchiveHeader,
UnexpectedSection,
ByteAligned(String),
IoError(Error),
HashTableEntryNotFound(String),
DecryptionDataWithKey(String),
IncompleteData,
InvalidHashType(u32),
UnsupportedCompression(u8),
UnsupportedEncryptionType,
InvalidUTF8Sequence(String),
InvalidListFileSector,
EncryptionTableIndexNotFound,
}
Expand description
Error handling for upstream crates to use
Variants§
MissingArchiveHeader
Mising Archive Header
UnexpectedSection
A section magic was Unexpected
ByteAligned(String)
Unable to parse the byte aligned data types
IoError(Error)
An I/O Error
HashTableEntryNotFound(String)
The Hash Table Entry wasn’t found for a filename
DecryptionDataWithKey(String)
Unable to decrypt mpq data with key
IncompleteData
Incoming data, missing bytes
InvalidHashType(u32)
Invalid HashType number
UnsupportedCompression(u8)
Unsupported Compression Type
UnsupportedEncryptionType
Encryption Type not suported.
InvalidUTF8Sequence(String)
Invalid UTF-8 Sequence on MPQ listfile sector.
InvalidListFileSector
Invalid ListFile sector
EncryptionTableIndexNotFound
Encryption table index not found
Trait Implementations§
Source§impl Debug for MPQParserError
impl Debug for MPQParserError
Source§impl Display for MPQParserError
impl Display for MPQParserError
Source§impl Error for MPQParserError
impl Error for MPQParserError
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<Error> for MPQParserError
impl From<Error> for MPQParserError
Source§impl<I> ParseError<I> for MPQParserErrorwhere
I: Clone,
impl<I> ParseError<I> for MPQParserErrorwhere
I: Clone,
Source§fn from_error_kind(_input: I, kind: ErrorKind) -> Self
fn from_error_kind(_input: I, kind: ErrorKind) -> Self
Creates an error from the input position and an ErrorKind
Source§fn append(_input: I, _kind: ErrorKind, other: Self) -> Self
fn append(_input: I, _kind: ErrorKind, other: Self) -> Self
Combines an existing error with a new one created from the input
position and an ErrorKind. This is useful when backtracking
through a parse tree, accumulating error context on the way
Auto Trait Implementations§
impl Freeze for MPQParserError
impl !RefUnwindSafe for MPQParserError
impl Send for MPQParserError
impl Sync for MPQParserError
impl Unpin for MPQParserError
impl !UnwindSafe for MPQParserError
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