pub enum APKError {
IoError(Error),
InvalidInput(&'static str),
ManifestError(AXMLError),
ResourceError(ARCSError),
XAPKManifestError(Error),
ZipError(ZipError),
CertificateError(CertificateError),
}Expand description
Possible APK errors
Variants§
IoError(Error)
Generic I/O error while trying to read or write data
InvalidInput(&'static str)
Got invalid input (for example, empty file or not apk)
ManifestError(AXMLError)
Error occurred while parsing AndroidManifest.xml
ResourceError(ARCSError)
Error occured while parsing resources.arsc
XAPKManifestError(Error)
ZipError(ZipError)
Error occurred while parsing apk as zip archive
CertificateError(CertificateError)
Trait Implementations§
Source§impl Error for APKError
impl Error for APKError
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<CertificateError> for APKError
impl From<CertificateError> for APKError
Source§fn from(source: CertificateError) -> Self
fn from(source: CertificateError) -> Self
Converts to this type from the input type.
Auto Trait Implementations§
impl Freeze for APKError
impl !RefUnwindSafe for APKError
impl Send for APKError
impl Sync for APKError
impl Unpin for APKError
impl UnsafeUnpin for APKError
impl !UnwindSafe for APKError
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