Struct shadow_rs::host::process::ZombieProcess
source · pub struct ZombieProcess { /* private fields */ }
Expand description
A process that has exited.
Implementations§
source§impl ZombieProcess
impl ZombieProcess
pub fn exit_status(&self) -> ExitStatus
sourcepub fn reaper<'host>(
&self,
host: &'host Host,
) -> Option<impl Deref<Target = RootedRc<RootedRefCell<Process>>> + 'host>
pub fn reaper<'host>( &self, host: &'host Host, ) -> Option<impl Deref<Target = RootedRc<RootedRefCell<Process>>> + 'host>
Process that can reap this zombie process, if any.
sourcepub fn exit_siginfo(&self, exit_signal: Signal) -> siginfo_t
pub fn exit_siginfo(&self, exit_signal: Signal) -> siginfo_t
Construct a siginfo containing information about how the process exited.
Used internally to send a signal to the parent process, and by the
waitid
syscall handler.
exit_signal
is the signal to set in the siginfo_t
.
Auto Trait Implementations§
impl !Freeze for ZombieProcess
impl !RefUnwindSafe for ZombieProcess
impl Send for ZombieProcess
impl !Sync for ZombieProcess
impl Unpin for ZombieProcess
impl UnwindSafe for ZombieProcess
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