pub struct ProcessExitWatcher { /* private fields */ }Expand description
Observes the eventual exit code of a tracked process.
Processes terminated by a signal resolve to -1. If the reaper thread
unexpectedly drops the notification, the failure is logged and also resolves
to -1 to preserve the exec-session wire protocol.
Implementations§
Source§impl ProcessExitWatcher
impl ProcessExitWatcher
Sourcepub fn identity(&self) -> ProcessIdentity
pub fn identity(&self) -> ProcessIdentity
Returns the stable identity of the tracked process.
Trait Implementations§
Source§impl Future for ProcessExitWatcher
impl Future for ProcessExitWatcher
Auto Trait Implementations§
impl !RefUnwindSafe for ProcessExitWatcher
impl !UnwindSafe for ProcessExitWatcher
impl Freeze for ProcessExitWatcher
impl Send for ProcessExitWatcher
impl Sync for ProcessExitWatcher
impl Unpin for ProcessExitWatcher
impl UnsafeUnpin for ProcessExitWatcher
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
Source§impl<F> IntoFuture for Fwhere
F: Future,
impl<F> IntoFuture for Fwhere
F: Future,
Source§type IntoFuture = F
type IntoFuture = F
Which kind of future are we turning this into?
Source§fn into_future(self) -> <F as IntoFuture>::IntoFuture
fn into_future(self) -> <F as IntoFuture>::IntoFuture
Creates a future from a value. Read more