pub struct InstallationProxy<S> { /* private fields */ }Expand description
InstallationProxy client.
Implementations§
Source§impl<S: AsyncRead + AsyncWrite + Unpin> InstallationProxy<S>
impl<S: AsyncRead + AsyncWrite + Unpin> InstallationProxy<S>
pub fn new(stream: S) -> Self
Sourcepub async fn install(&mut self, package_path: &str) -> Result<(), IpError>
pub async fn install(&mut self, package_path: &str) -> Result<(), IpError>
Install an app from a staged IPA path on the device.
Sourcepub async fn upgrade(&mut self, package_path: &str) -> Result<(), IpError>
pub async fn upgrade(&mut self, package_path: &str) -> Result<(), IpError>
Upgrade an app from a staged IPA path on the device.
Sourcepub async fn list_user_apps(&mut self) -> Result<Vec<AppInfo>, IpError>
pub async fn list_user_apps(&mut self) -> Result<Vec<AppInfo>, IpError>
List all user-installed apps.
Sourcepub async fn list_user_apps_with_attributes(
&mut self,
return_attributes: &[&str],
) -> Result<Vec<AppInfo>, IpError>
pub async fn list_user_apps_with_attributes( &mut self, return_attributes: &[&str], ) -> Result<Vec<AppInfo>, IpError>
List user-installed apps with a narrowed set of returned attributes.
Sourcepub async fn list_all_apps(&mut self) -> Result<Vec<AppInfo>, IpError>
pub async fn list_all_apps(&mut self) -> Result<Vec<AppInfo>, IpError>
List all apps (user + system).
Sourcepub async fn list_system_apps(&mut self) -> Result<Vec<AppInfo>, IpError>
pub async fn list_system_apps(&mut self) -> Result<Vec<AppInfo>, IpError>
List only system apps.
List only hidden apps.
Sourcepub async fn list_file_sharing_apps(&mut self) -> Result<Vec<AppInfo>, IpError>
pub async fn list_file_sharing_apps(&mut self) -> Result<Vec<AppInfo>, IpError>
List apps that expose iTunes/File Sharing.
Sourcepub async fn uninstall(&mut self, bundle_id: &str) -> Result<(), IpError>
pub async fn uninstall(&mut self, bundle_id: &str) -> Result<(), IpError>
Uninstall an app by bundle ID.
Sourcepub async fn archive(&mut self, bundle_id: &str) -> Result<(), IpError>
pub async fn archive(&mut self, bundle_id: &str) -> Result<(), IpError>
Archive an app by bundle ID.
Sourcepub async fn restore(&mut self, bundle_id: &str) -> Result<(), IpError>
pub async fn restore(&mut self, bundle_id: &str) -> Result<(), IpError>
Restore an archived app by bundle ID.
Auto Trait Implementations§
impl<S> Freeze for InstallationProxy<S>where
S: Freeze,
impl<S> RefUnwindSafe for InstallationProxy<S>where
S: RefUnwindSafe,
impl<S> Send for InstallationProxy<S>where
S: Send,
impl<S> Sync for InstallationProxy<S>where
S: Sync,
impl<S> Unpin for InstallationProxy<S>where
S: Unpin,
impl<S> UnsafeUnpin for InstallationProxy<S>where
S: UnsafeUnpin,
impl<S> UnwindSafe for InstallationProxy<S>where
S: UnwindSafe,
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