pub struct ProcessLiveness { /* private fields */ }Expand description
A live reference to another process, good for as long as it is held.
Where the kernel offers one, this holds a pidfd: a PID can be recycled between two questions, but a pidfd cannot, so a handle opened once keeps naming the process it was opened for even after that process exits. Older kernels have no such thing, and there the handle falls back to asking about the PID – which is the best this host can do, not an equivalent.
Implementations§
Trait Implementations§
Auto Trait Implementations§
impl Freeze for ProcessLiveness
impl RefUnwindSafe for ProcessLiveness
impl Send for ProcessLiveness
impl Sync for ProcessLiveness
impl Unpin for ProcessLiveness
impl UnsafeUnpin for ProcessLiveness
impl UnwindSafe for ProcessLiveness
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