Enum Id

pub enum Id<'fd>

The ID argument for waitid

Variants

All

Wait for any child

Pid(Pid)

Wait for the child whose process ID matches the given PID

PGid(Pid)

Wait for the child whose process group ID matches the given PID

If the PID is zero, the caller's process group is used since Linux 5.4.

PIDFd(BorrowedFd<'fd>)

Wait for the child referred to by the given PID file descriptor

Trait Implementations

impl<'fd> Debug for Id<'fd>

fn fmt(&self, f: &mut Formatter<'_>) -> Result

Auto Trait Implementations

impl<'fd> Freeze for Id<'fd>

impl<'fd> RefUnwindSafe for Id<'fd>

impl<'fd> Send for Id<'fd>

impl<'fd> Sync for Id<'fd>

impl<'fd> Unpin for Id<'fd>

impl<'fd> UnsafeUnpin for Id<'fd>

impl<'fd> UnwindSafe for Id<'fd>

Blanket Implementations

impl<T> Any for Id<'fd> where T: 'static + ?Sized,

fn type_id(&self) -> TypeId

impl<T> Borrow<T> for Id<'fd> where T: ?Sized,

fn borrow(&self) -> &T

impl<T> BorrowMut<T> for Id<'fd> where T: ?Sized,

fn borrow_mut(&mut self) -> &mut T

impl<T> From<T> for Id<'fd>

fn from(t: T) -> T

Returns the argument unchanged.

impl<T, U> Into<U> for Id<'fd> where U: From<T>,

fn into(self) -> U

Calls U::from(self).

That is, this conversion is whatever the implementation of [From]<T> for U chooses to do.

impl<T, U> TryFrom<U> for Id<'fd> where U: Into<T>,

type Error = never;
fn try_from(value: U) -> Result<T, never>

impl<T, U> TryInto<U> for Id<'fd> where U: TryFrom<T>,

type Error = <U as TryFrom<T>>::Error;
fn try_into(self) -> Result<U, <U as TryFrom<T>>::Error>