pub struct Privacy { /* private fields */ }
Expand description
Wrapper around the simctl privacy
subcommand.
Implementations§
Source§impl Privacy
impl Privacy
Sourcepub fn grant(&self, service: PrivacyService, bundle_id: &str) -> Result<()>
pub fn grant(&self, service: PrivacyService, bundle_id: &str) -> Result<()>
Grants access to the given service to an application with the given bundle ID.
Sourcepub fn revoke(&self, service: PrivacyService, bundle_id: &str) -> Result<()>
pub fn revoke(&self, service: PrivacyService, bundle_id: &str) -> Result<()>
Revokes access to the given service from an application with the given bundle ID.
Sourcepub fn reset(&self, service: PrivacyService, bundle_id: &str) -> Result<()>
pub fn reset(&self, service: PrivacyService, bundle_id: &str) -> Result<()>
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.
Sourcepub fn reset_all(&self, service: PrivacyService) -> Result<()>
pub fn reset_all(&self, service: PrivacyService) -> Result<()>
Resets access to the given service from all applications running on the device.
Auto Trait Implementations§
impl Freeze for Privacy
impl RefUnwindSafe for Privacy
impl Send for Privacy
impl Sync for Privacy
impl Unpin for Privacy
impl UnwindSafe for Privacy
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