[−][src]Struct async_pidfd::PidFd
A process file descriptor.
Implementations
impl PidFd
[src]
pub fn from_pid(pid: pid_t) -> Result<Self>
[src]
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.
pub fn wait(&self) -> Result<ExitInfo>
[src]
Wait for the process to complete.
Trait Implementations
Auto Trait Implementations
impl RefUnwindSafe for PidFd
impl Send for PidFd
impl Sync for PidFd
impl Unpin for PidFd
impl UnwindSafe for PidFd
Blanket Implementations
impl<T> Any for T where
T: 'static + ?Sized,
[src]
T: 'static + ?Sized,
impl<T> Borrow<T> for T where
T: ?Sized,
[src]
T: ?Sized,
impl<T> BorrowMut<T> for T where
T: ?Sized,
[src]
T: ?Sized,
pub fn borrow_mut(&mut self) -> &mut T
[src]
impl<T> From<T> for T
[src]
impl<T, U> Into<U> for T where
U: From<T>,
[src]
U: From<T>,
impl<T, U> TryFrom<U> for T where
U: Into<T>,
[src]
U: Into<T>,
type Error = Infallible
The type returned in the event of a conversion error.
pub fn try_from(value: U) -> Result<T, <T as TryFrom<U>>::Error>
[src]
impl<T, U> TryInto<U> for T where
U: TryFrom<T>,
[src]
U: TryFrom<T>,