pub struct ProcessControl<S> { /* private fields */ }Expand description
Process control service client. Each instance owns its own DTX connection and channel.
Implementations§
Source§impl<S: AsyncRead + AsyncWrite + Unpin + Send> ProcessControl<S>
impl<S: AsyncRead + AsyncWrite + Unpin + Send> ProcessControl<S>
Sourcepub async fn connect(stream: S) -> Result<Self, DtxError>
pub async fn connect(stream: S) -> Result<Self, DtxError>
Connect to the process control service.
Sourcepub async fn launch(
&mut self,
bundle_id: &str,
args: &[&str],
env: &HashMap<String, String>,
) -> Result<u64, DtxError>
pub async fn launch( &mut self, bundle_id: &str, args: &[&str], env: &HashMap<String, String>, ) -> Result<u64, DtxError>
Launch an app by bundle ID; returns its PID.
Auto Trait Implementations§
impl<S> Freeze for ProcessControl<S>where
S: Freeze,
impl<S> RefUnwindSafe for ProcessControl<S>where
S: RefUnwindSafe,
impl<S> Send for ProcessControl<S>where
S: Send,
impl<S> Sync for ProcessControl<S>where
S: Sync,
impl<S> Unpin for ProcessControl<S>where
S: Unpin,
impl<S> UnsafeUnpin for ProcessControl<S>where
S: UnsafeUnpin,
impl<S> UnwindSafe for ProcessControl<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