[−][src]Struct async_pidfd::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
impl RefUnwindSafe for AsyncPidFd
impl Send for AsyncPidFd
impl Sync for AsyncPidFd
impl Unpin for AsyncPidFd
impl UnwindSafe for AsyncPidFd
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,
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.
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>,