[−][src]Struct creator_simctl::privacy::Privacy
Wrapper around the simctl privacy
subcommand.
Implementations
impl Privacy
[src]
pub fn grant(&self, service: PrivacyService, bundle_id: &str) -> Result<()>
[src]
Grants access to the given service to an application with the given bundle ID.
pub fn revoke(&self, service: PrivacyService, bundle_id: &str) -> Result<()>
[src]
Revokes access to the given service from an application with the given bundle ID.
pub fn reset(&self, service: PrivacyService, bundle_id: &str) -> Result<()>
[src]
Resets access to the given service from an application with the given bundle ID. This will cause the OS to ask again when this app requests permission to use the given service.
pub fn reset_all(&self, service: PrivacyService) -> Result<()>
[src]
Resets access to the given service from all applications running on the device.
Auto Trait Implementations
impl RefUnwindSafe for Privacy
[src]
impl Send for Privacy
[src]
impl Sync for Privacy
[src]
impl Unpin for Privacy
[src]
impl UnwindSafe for Privacy
[src]
Blanket Implementations
impl<T> Any for T where
T: 'static + ?Sized,
[src]
T: 'static + ?Sized,
impl<T> Borrow<T> for T where
T: ?Sized,
[src]
T: ?Sized,
impl<T> BorrowMut<T> for T where
T: ?Sized,
[src]
T: ?Sized,
pub fn borrow_mut(&mut self) -> &mut T
[src]
impl<T> From<T> for T
[src]
impl<T, U> Into<U> for T where
U: From<T>,
[src]
U: From<T>,
impl<T, U> TryFrom<U> for T where
U: Into<T>,
[src]
U: Into<T>,
type Error = Infallible
The type returned in the event of a conversion error.
pub fn try_from(value: U) -> Result<T, <T as TryFrom<U>>::Error>
[src]
impl<T, U> TryInto<U> for T where
U: TryFrom<T>,
[src]
U: TryFrom<T>,