#[non_exhaustive]pub enum NativeError {
Show 18 variants
Elf(Error),
NotSharedLibrary {
e_type: u16,
},
BigEndian,
UnsupportedMachine {
machine: u16,
bits: u8,
},
SegmentFileRange {
segment: usize,
offset: u64,
size: u64,
},
SegmentSize {
segment: usize,
file_size: u64,
memory_size: u64,
},
AbiMismatch {
library: LibraryName,
expected: Abi,
found: Abi,
},
NotArmEabi5 {
library: LibraryName,
},
HardFloat {
library: LibraryName,
},
NoLoadSegments {
library: LibraryName,
},
SegmentAlignment {
library: LibraryName,
abi: Abi,
segment: usize,
alignment: u64,
required: u64,
},
SegmentIncongruent {
library: LibraryName,
segment: usize,
offset: u64,
address: u64,
alignment: u64,
},
MissingEntryPoint {
library: LibraryName,
symbol: &'static str,
},
MissingDependency {
library: LibraryName,
abi: Abi,
needed: String,
},
SystemLibraryTooNew {
library: LibraryName,
needed: String,
since: ApiLevel,
min_sdk: ApiLevel,
},
DuplicateLibrary {
library: LibraryName,
abi: Abi,
},
MissingEntryLibrary {
library: LibraryName,
abi: Abi,
},
FourKibPages {
target_sdk: ApiLevel,
},
}Expand description
Why a native library cannot be packaged.
Variants (Non-exhaustive)§
This enum is marked as non-exhaustive
Non-exhaustive enums could have additional variants added in future. Therefore, when matching against variants of non-exhaustive enums, an extra wildcard arm must be added to account for any future variants.
Elf(Error)
BigEndian
UnsupportedMachine
SegmentFileRange
SegmentSize
AbiMismatch
NotArmEabi5
Fields
§
library: LibraryNameHardFloat
Fields
§
library: LibraryNameNoLoadSegments
Fields
§
library: LibraryNameSegmentAlignment
SegmentIncongruent
MissingEntryPoint
MissingDependency
SystemLibraryTooNew
DuplicateLibrary
MissingEntryLibrary
FourKibPages
Trait Implementations§
Source§impl Debug for NativeError
impl Debug for NativeError
Source§impl Display for NativeError
impl Display for NativeError
Source§impl Error for NativeError
impl Error for NativeError
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 NativeError
impl From<Error> for NativeError
Source§impl From<NativeError> for Error
impl From<NativeError> for Error
Source§fn from(source: NativeError) -> Self
fn from(source: NativeError) -> Self
Converts to this type from the input type.
Auto Trait Implementations§
impl !RefUnwindSafe for NativeError
impl !UnwindSafe for NativeError
impl Freeze for NativeError
impl Send for NativeError
impl Sync for NativeError
impl Unpin for NativeError
impl UnsafeUnpin for NativeError
Blanket Implementations§
Source§impl<'a, T, E> AsTaggedExplicit<'a, E> for Twhere
T: 'a,
impl<'a, T, E> AsTaggedExplicit<'a, E> for Twhere
T: 'a,
Source§impl<'a, T, E> AsTaggedImplicit<'a, E> for Twhere
T: 'a,
impl<'a, T, E> AsTaggedImplicit<'a, E> for Twhere
T: 'a,
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