pub enum RpaError {
Io(Error),
IdentifyVersion,
ParseOffset,
ParseKey,
NotFound(PathBuf),
WritingNotSupported(RpaVersion),
SerializeRecord,
DeserializeRecord,
FormatRecord,
}
Expand description
Represents errors that the library can raise.
Variants§
Io(Error)
Wraps io::Error
.
IdentifyVersion
Failed to identify archive version.
ParseOffset
Failed to parse index offset.
ParseKey
Failed to parse index obfuscation key.
NotFound(PathBuf)
File not found in dexes or content.
WritingNotSupported(RpaVersion)
Creating archive not supported for a specific version.
SerializeRecord
Failed to serialize archive index.
DeserializeRecord
Failed to deserialize archive index.
FormatRecord
Failed to format archive index.
Trait Implementations§
Source§impl Error for RpaError
impl Error for RpaError
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()
Auto Trait Implementations§
impl Freeze for RpaError
impl !RefUnwindSafe for RpaError
impl Send for RpaError
impl Sync for RpaError
impl Unpin for RpaError
impl !UnwindSafe for RpaError
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