[][src]Struct creator_simctl::privacy::Privacy

pub struct Privacy { /* fields omitted */ }

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

Blanket Implementations

impl<T> Any for T where
    T: 'static + ?Sized
[src]

impl<T> Borrow<T> for T where
    T: ?Sized
[src]

impl<T> BorrowMut<T> for T where
    T: ?Sized
[src]

impl<T> From<T> for T[src]

impl<T, U> Into<U> for T where
    U: From<T>, 
[src]

impl<T, U> TryFrom<U> for T where
    U: Into<T>, 
[src]

type Error = Infallible

The type returned in the event of a conversion error.

impl<T, U> TryInto<U> for T where
    U: TryFrom<T>, 
[src]

type Error = <U as TryFrom<T>>::Error

The type returned in the event of a conversion error.