[][src]Struct async_pidfd::AsyncPidFd

pub struct AsyncPidFd(_);

Asynchronous version of PidFd.

Implementations

impl AsyncPidFd[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 async fn wait<'_>(&'_ self) -> Result<ExitInfo>[src]

Wait for the process to complete.

Auto Trait Implementations

Blanket Implementations

impl<T> Any for T where
    T: 'static + ?Sized
[src]

impl<T> Borrow<T> for T where
    T: ?Sized
[src]

impl<T> BorrowMut<T> for T where
    T: ?Sized
[src]

impl<T> From<T> for T[src]

impl<T, U> Into<U> for T where
    U: From<T>, 
[src]

impl<T, U> TryFrom<U> for T where
    U: Into<T>, 
[src]

type Error = Infallible

The type returned in the event of a conversion error.

impl<T, U> TryInto<U> for T where
    U: TryFrom<T>, 
[src]

type Error = <U as TryFrom<T>>::Error

The type returned in the event of a conversion error.