pub struct AsyncPidFd(/* private fields */);
Expand description
Asynchronous version of PidFd
.
Implementations§
Source§impl AsyncPidFd
impl AsyncPidFd
Sourcepub fn from_pid(pid: pid_t) -> Result<Self>
pub fn from_pid(pid: pid_t) -> Result<Self>
Create a process file descriptor from a PID.
You can get a process ID from std::process::Child
by calling Child::id
.
As long as this process has not yet waited on the child process, and has not blocked
SIGCHLD
, the process ID will not get reused, so it does not matter if the child process
has already exited.
Auto Trait Implementations§
impl Freeze for AsyncPidFd
impl RefUnwindSafe for AsyncPidFd
impl Send for AsyncPidFd
impl Sync for AsyncPidFd
impl Unpin for AsyncPidFd
impl UnwindSafe for AsyncPidFd
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