pub struct NativePolicy {
pub page_size: PageSize,
pub storage: LibraryStorage,
pub check_dependencies: bool,
pub system_libraries: BTreeSet<String>,
}Expand description
Requirements applied to packaged native libraries.
Fields§
§page_size: PageSizeThe page size 64-bit libraries must support. 32-bit ABIs always use 4 KiB pages.
storage: LibraryStorage§check_dependencies: boolWhether every DT_NEEDED library must be packaged or provided by Android.
system_libraries: BTreeSet<String>Extra libraries (beyond the NDK’s stable libraries) assumed to exist on devices.
Implementations§
Source§impl NativePolicy
impl NativePolicy
Sourcepub fn page_size_for(&self, abi: Abi) -> PageSize
pub fn page_size_for(&self, abi: Abi) -> PageSize
The page size required of libraries for abi.
Sourcepub fn check_system_library(
&self,
library: &LibraryName,
abi: Abi,
needed: &str,
min_sdk: ApiLevel,
) -> Result<(), NativeError>
pub fn check_system_library( &self, library: &LibraryName, abi: Abi, needed: &str, min_sdk: ApiLevel, ) -> Result<(), NativeError>
Checks that needed, a dependency of library that is not packaged,
is provided by every Android release from min_sdk on.
Trait Implementations§
Source§impl Clone for NativePolicy
impl Clone for NativePolicy
Source§impl Debug for NativePolicy
impl Debug for NativePolicy
Source§impl Default for NativePolicy
impl Default for NativePolicy
impl Eq for NativePolicy
Source§impl PartialEq for NativePolicy
impl PartialEq for NativePolicy
impl StructuralPartialEq for NativePolicy
Auto Trait Implementations§
impl Freeze for NativePolicy
impl RefUnwindSafe for NativePolicy
impl Send for NativePolicy
impl Sync for NativePolicy
impl Unpin for NativePolicy
impl UnsafeUnpin for NativePolicy
impl UnwindSafe for NativePolicy
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
Source§impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
Source§impl<Q, K> Equivalent<K> for Q
impl<Q, K> Equivalent<K> for Q
Source§impl<Q, K> Equivalent<K> for Q
impl<Q, K> Equivalent<K> for Q
Source§fn equivalent(&self, key: &K) -> bool
fn equivalent(&self, key: &K) -> bool
Compare self to
key and return true if they are equal.