[][src]Struct async_pidfd::PidFd

pub struct 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

impl AsRawFd for PidFd[src]

impl Drop for PidFd[src]

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]

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.