Enum popcap_pak::PakError
source · pub enum PakError {
Io(Error),
InvalidMagic([u8; 4]),
InvalidVersion([u8; 4]),
InvalidFileNameLength {
length: usize,
error: TryFromIntError,
},
InvalidFileDataLength {
length: usize,
error: TryFromIntError,
},
InvalidRecordFileSize {
file_size: u32,
error: TryFromIntError,
},
}
Expand description
Error type of this library
Variants§
Io(Error)
IO errors that may occur during use
InvalidMagic([u8; 4])
Invalid Magic number.
See [MAGIC
].
InvalidVersion([u8; 4])
Invalid Pak Version.
See [VERSION
].
InvalidFileNameLength
The filename is too long.
See [MAX_NAME_LEN
].
InvalidFileDataLength
The file data is too long.
See [MAX_DATA_LEN
].
InvalidRecordFileSize
The size of the file data in the record is too long.
Trait Implementations§
source§impl Error for PakError
impl Error for PakError
source§fn source(&self) -> Option<&(dyn Error + 'static)>
fn source(&self) -> Option<&(dyn Error + 'static)>
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()
Auto Trait Implementations§
impl Freeze for PakError
impl !RefUnwindSafe for PakError
impl Send for PakError
impl Sync for PakError
impl Unpin for PakError
impl !UnwindSafe for PakError
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