pub struct Use { /* private fields */ }Expand description
One service an application uses, with the sentence it shows if it needs one.
Implementations§
Source§impl Use
impl Use
Sourcepub const fn camera(reason: &'static str) -> Self
pub const fn camera(reason: &'static str) -> Self
The camera, with what the person is told before it opens.
Sourcepub const fn photo_library(reason: &'static str) -> Self
pub const fn photo_library(reason: &'static str) -> Self
Reading the photo library, with what the person is told.
Sourcepub const fn photo_library_add(reason: &'static str) -> Self
pub const fn photo_library_add(reason: &'static str) -> Self
Writing to the photo library, with what the person is told.
Sourcepub const fn microphone(reason: &'static str) -> Self
pub const fn microphone(reason: &'static str) -> Self
The microphone, with what the person is told.
Sourcepub const fn location(reason: &'static str) -> Self
pub const fn location(reason: &'static str) -> Self
Where the device is, with what the person is told.
Sourcepub const fn notifications() -> Self
pub const fn notifications() -> Self
Notifications the person sees.
Sourcepub const fn background() -> Self
pub const fn background() -> Self
Work that carries on with the application off screen.
Sourcepub const fn heart_rate(reason: &'static str) -> Self
pub const fn heart_rate(reason: &'static str) -> Self
The wearer’s heart rate, with what the person is told before the sensor is read. Declaring it is the only way an application’s build asks for the permission; reading it still takes an explicit request at run time.
Trait Implementations§
impl Copy for Use
impl Eq for Use
impl StructuralPartialEq for Use
Auto Trait Implementations§
impl Freeze for Use
impl RefUnwindSafe for Use
impl Send for Use
impl Sync for Use
impl Unpin for Use
impl UnsafeUnpin for Use
impl UnwindSafe for Use
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