#[non_exhaustive]#[repr(u32)]pub enum AServiceManager_PermissionType {
CHECK_ACCESS_PERMISSION_FIND = 0,
CHECK_ACCESS_PERMISSION_LIST = 1,
CHECK_ACCESS_PERMISSION_ADD = 2,
}Expand description
These are the different SELinux permissions that processes need to have for different operations with servicemanager.
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.
CHECK_ACCESS_PERMISSION_FIND = 0
Permission for a process to “find” this service through ServiceManager APIs like AServiceManager_getService or AServiceManager_waitForService
CHECK_ACCESS_PERMISSION_LIST = 1
Permission for a process to “list” services with libbinder’s IServiceManager::listServices
CHECK_ACCESS_PERMISSION_ADD = 2
Permission for a process to “add”, or register, a service with servicemanager through AServiceManager_addService
Trait Implementations§
Source§impl Clone for AServiceManager_PermissionType
impl Clone for AServiceManager_PermissionType
Source§fn clone(&self) -> AServiceManager_PermissionType
fn clone(&self) -> AServiceManager_PermissionType
Returns a duplicate of the value. Read more
1.0.0 · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source. Read moreSource§impl PartialEq for AServiceManager_PermissionType
impl PartialEq for AServiceManager_PermissionType
Source§fn eq(&self, other: &AServiceManager_PermissionType) -> bool
fn eq(&self, other: &AServiceManager_PermissionType) -> bool
Tests for
self and other values to be equal, and is used by ==.impl Copy for AServiceManager_PermissionType
impl Eq for AServiceManager_PermissionType
impl StructuralPartialEq for AServiceManager_PermissionType
Auto Trait Implementations§
impl Freeze for AServiceManager_PermissionType
impl RefUnwindSafe for AServiceManager_PermissionType
impl Send for AServiceManager_PermissionType
impl Sync for AServiceManager_PermissionType
impl Unpin for AServiceManager_PermissionType
impl UnwindSafe for AServiceManager_PermissionType
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