pub struct PlatformLifecycle { /* private fields */ }Expand description
Opaque exit-wait capability owned by a process actor.
Implementations§
Source§impl PlatformLifecycle
impl PlatformLifecycle
Sourcepub async fn wait(&mut self) -> Result<ExitStatus>
pub async fn wait(&mut self) -> Result<ExitStatus>
Wait asynchronously for the child to exit.
Sourcepub fn start_kill(&mut self) -> Result<()>
pub fn start_kill(&mut self) -> Result<()>
Request direct-child termination through the still-owned child handle without waiting for its reaping result.
This is the identity-safe fallback when a host cannot provide a separately usable launch-bound signal capability (for example a Linux kernel without pidfds). The actor continues to own this lifecycle handle and performs the eventual reap itself.
Auto Trait Implementations§
impl !RefUnwindSafe for PlatformLifecycle
impl !UnwindSafe for PlatformLifecycle
impl Freeze for PlatformLifecycle
impl Send for PlatformLifecycle
impl Sync for PlatformLifecycle
impl Unpin for PlatformLifecycle
impl UnsafeUnpin for PlatformLifecycle
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<T> IntoEither for T
impl<T> IntoEither for T
Source§fn into_either(self, into_left: bool) -> Either<Self, Self> ⓘ
fn into_either(self, into_left: bool) -> Either<Self, Self> ⓘ
Converts
self into a Left variant of Either<Self, Self>
if into_left is true.
Converts self into a Right variant of Either<Self, Self>
otherwise. Read moreSource§fn into_either_with<F>(self, into_left: F) -> Either<Self, Self> ⓘ
fn into_either_with<F>(self, into_left: F) -> Either<Self, Self> ⓘ
Converts
self into a Left variant of Either<Self, Self>
if into_left(&self) returns true.
Converts self into a Right variant of Either<Self, Self>
otherwise. Read more