pub enum Service {
Show 13 variants
Camera,
PhotoLibrary,
PhotoLibraryAdd,
Microphone,
Location,
Notifications,
Background,
Media,
Billing,
Overlay,
Haptics,
Update,
Network,
}Expand description
Something an application uses that the device has to allow.
Variants§
Camera
The camera.
PhotoLibrary
Reading the photo library.
PhotoLibraryAdd
Writing to the photo library.
Microphone
The microphone.
Location
Where the device is.
Notifications
Notifications the person sees.
Background
Work that carries on with the application off screen.
Media
Media playback that carries on with the application off screen.
Billing
Purchases through the platform store.
Overlay
A window drawn above other applications.
Haptics
The vibrator.
Update
Handing a downloaded package to the system installer.
Network
The network, and whether the device is on one.
Implementations§
Source§impl Service
impl Service
Sourcepub const fn name(self) -> &'static str
pub const fn name(self) -> &'static str
The name this service carries in the build’s own files.
Sourcepub const fn android_permissions(self) -> &'static [&'static str]
pub const fn android_permissions(self) -> &'static [&'static str]
The Android permissions this service needs.
Sourcepub const fn apple_key(self) -> Option<&'static str>
pub const fn apple_key(self) -> Option<&'static str>
The key an Apple platform reads the sentence from.
Sourcepub const fn takes_reason(self) -> bool
pub const fn takes_reason(self) -> bool
Whether this service takes a sentence to show the person.
Trait Implementations§
impl Copy for Service
impl Eq for Service
Source§impl Ord for Service
impl Ord for Service
1.21.0 (const: unstable) · Source§fn max(self, other: Self) -> Selfwhere
Self: Sized,
fn max(self, other: Self) -> Selfwhere
Self: Sized,
Compares and returns the maximum of two values. Read more
1.21.0 (const: unstable) · Source§fn min(self, other: Self) -> Selfwhere
Self: Sized,
fn min(self, other: Self) -> Selfwhere
Self: Sized,
Compares and returns the minimum of two values. Read more
Source§impl PartialOrd for Service
impl PartialOrd for Service
impl StructuralPartialEq for Service
Auto Trait Implementations§
impl Freeze for Service
impl RefUnwindSafe for Service
impl Send for Service
impl Sync for Service
impl Unpin for Service
impl UnsafeUnpin for Service
impl UnwindSafe for Service
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