Trait std::os::linux::process::ChildExt

pub trait ChildExt: Sealed {
    fn pidfd(&self) -> Result<&PidFd>;
    fn take_pidfd(&mut self) -> Result<PidFd>;
}
???? This is a nightly-only experimental API. (linux_pidfd #82971)
This is supported on Linux only.

Os-specific extensions for Child

Required methods

???? This is a nightly-only experimental API. (linux_pidfd #82971)

Obtains a reference to the PidFd created for this Child, if available.

A pidfd will only be available if its creation was requested with create_pidfd when the corresponding Command was created.

Even if requested, a pidfd may not be available due to an older version of Linux being in use, or if some other error occurred.

???? This is a nightly-only experimental API. (linux_pidfd #82971)

Takes ownership of the PidFd created for this Child, if available.

A pidfd will only be available if its creation was requested with create_pidfd when the corresponding Command was created.

Even if requested, a pidfd may not be available due to an older version of Linux being in use, or if some other error occurred.

Implementors

© 2010 The Rust Project Developers
Licensed under the Apache License, Version 2.0 or the MIT license, at your option.
https://doc.rust-lang.org/std/os/linux/process/trait.ChildExt.html