Struct PidFd
pub struct PidFd(pub(in ::sys::process::unix::pidfd) FileDesc);
Fields
0: FileDesc
Implementations
impl PidFd
fn kill(&self) -> Result<()>fn current_process() -> Result<PidFd>fn pid(&self) -> Result<u32>fn exit_for_reaped_child(&self) -> Result<ExitStatus>fn waitid(&self, options: c_int) -> Result<Option<ExitStatus>>fn send_signal(&self, signal: i32) -> Result<()>fn send_process_group_signal(&self, signal: i32) -> Result<()>fn wait(&self) -> Result<ExitStatus>fn try_wait(&self) -> Result<Option<ExitStatus>>
Trait Implementations
impl AsInner<FileDesc> for PidFd
fn as_inner(&self) -> &FileDesc
impl Debug for PidFd
fn fmt(&self, f: &mut Formatter<'_>) -> Result
impl FromInner<FileDesc> for PidFd
fn from_inner(inner: FileDesc) -> Self
impl FromRawFd for PidFd
unsafe fn from_raw_fd(fd: RawFd) -> Self
impl IntoInner<FileDesc> for PidFd
fn into_inner(self) -> FileDesc
impl IntoRawFd for PidFd
fn into_raw_fd(self) -> RawFd
Auto Trait Implementations
impl Freeze for PidFd
impl RefUnwindSafe for PidFd
impl Send for PidFd
impl Sync for PidFd
impl Unpin for PidFd
impl UnsafeUnpin for PidFd
impl UnwindSafe for PidFd
Blanket Implementations
impl<T> Any for PidFd
where
T: 'static + ?Sized,
fn type_id(&self) -> TypeId
impl<T> Borrow<T> for PidFd
where
T: ?Sized,
fn borrow(&self) -> &T
impl<T> BorrowMut<T> for PidFd
where
T: ?Sized,
fn borrow_mut(&mut self) -> &mut T
impl<T> From<T> for PidFd
fn from(t: T) -> TReturns the argument unchanged.
impl<T> SizeHint for PidFd
where
T: ?Sized,
fn lower_bound(&self) -> usizefn upper_bound(&self) -> Option<usize>
impl<T> SizedTypeProperties for PidFd
impl<T, U> Into<U> for PidFd
where
U: From<T>,
fn into(self) -> UCalls
U::from(self).That is, this conversion is whatever the implementation of
[From]<T> for Uchooses to do.
impl<T, U> TryFrom<U> for PidFd
where
U: Into<T>,
type Error = Infallible;fn try_from(value: U) -> Result<T, <T as TryFrom<U>>::Error>
impl<T, U> TryInto<U> for PidFd
where
U: TryFrom<T>,
type Error = <U as TryFrom<T>>::Error;fn try_into(self) -> Result<U, <U as TryFrom<T>>::Error>