pub struct AppServiceClient { /* private fields */ }Implementations§
Source§impl AppServiceClient
impl AppServiceClient
pub fn new(client: XpcClient, _device_identifier: impl Into<String>) -> Self
pub async fn list_processes( &mut self, ) -> Result<Vec<RunningAppProcess>, AppServiceError>
pub async fn kill_process(&mut self, pid: u64) -> Result<(), AppServiceError>
pub async fn send_signal( &mut self, pid: u64, signal: i64, ) -> Result<(), AppServiceError>
pub async fn launch_application( &mut self, bundle_id: &str, ) -> Result<Option<u64>, AppServiceError>
Auto Trait Implementations§
impl Freeze for AppServiceClient
impl !RefUnwindSafe for AppServiceClient
impl Send for AppServiceClient
impl !Sync for AppServiceClient
impl Unpin for AppServiceClient
impl UnsafeUnpin for AppServiceClient
impl !UnwindSafe for AppServiceClient
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